This is an automated email from the ASF dual-hosted git repository.
entl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new aae0fcd Remove check that blows up when the LSP or DAP server is
reset.
aae0fcd is described below
commit aae0fcd2997c1921280d8c6709551d8a0de57c64
Author: Martin Entlicher <[email protected]>
AuthorDate: Thu Oct 7 10:37:46 2021 +0200
Remove check that blows up when the LSP or DAP server is reset.
---
.../src/org/netbeans/modules/java/lsp/server/LspSession.java | 6 ------
1 file changed, 6 deletions(-)
diff --git
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/LspSession.java
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/LspSession.java
index 5ed3a88..4df0d7c 100644
---
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/LspSession.java
+++
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/LspSession.java
@@ -53,9 +53,6 @@ public final class LspSession {
* Set the launched LSP server.
*/
void setLspServer(NbLspServer lspServer) {
- if (lspServer != null && this.lspServer != null) {
- throw new IllegalStateException("LSP server is set already");
- }
setServerLookup(lspServer, lspServices);
this.lspServer = lspServer;
}
@@ -64,9 +61,6 @@ public final class LspSession {
* Set the launched DAP server.
*/
void setDapServer(NbProtocolServer dapServer) {
- if (dapServer != null && this.dapServer != null) {
- throw new IllegalStateException("DAP server is set already");
- }
setServerLookup(dapServer, dapServices);
this.dapServer = dapServer;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists