You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by db...@apache.org on 2021/01/22 11:03:45 UTC
[netbeans] branch master updated: Restart NBLS when an extension
providing some NB cluster is installed/uninstalled. (#2698)
This is an automated email from the ASF dual-hosted git repository.
dbalek 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 2de44ca Restart NBLS when an extension providing some NB cluster is installed/uninstalled. (#2698)
2de44ca is described below
commit 2de44ca42571c3c719f9183c176522c2fc4fbe8b
Author: Dusan Balek <du...@oracle.com>
AuthorDate: Fri Jan 22 12:03:25 2021 +0100
Restart NBLS when an extension providing some NB cluster is installed/uninstalled. (#2698)
---
java/java.lsp.server/vscode/src/extension.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/java/java.lsp.server/vscode/src/extension.ts b/java/java.lsp.server/vscode/src/extension.ts
index c3a78f3..9ae6b92 100644
--- a/java/java.lsp.server/vscode/src/extension.ts
+++ b/java/java.lsp.server/vscode/src/extension.ts
@@ -156,6 +156,14 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
// find acceptable JDK and launch the Java part
findJDK((specifiedJDK) => {
+ let currentClusters = findClusters(context.extensionPath).sort();
+ context.subscriptions.push(vscode.extensions.onDidChange(() => {
+ const newClusters = findClusters(context.extensionPath).sort();
+ if (newClusters.length !== currentClusters.length || newClusters.find((value, index) => value !== currentClusters[index])) {
+ currentClusters = newClusters;
+ activateWithJDK(specifiedJDK, context, log, true);
+ }
+ }));
activateWithJDK(specifiedJDK, context, log, true);
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists