This is an automated email from the ASF dual-hosted git repository.

sdedic 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 5d5fe2c342 Reveal things in project explorer by default.
     new cbcaf62638 Merge pull request #4607 from sdedic/vscode/revealByDefault
5d5fe2c342 is described below

commit 5d5fe2c3428d3b68d7960f2f0c9d2f033974e9d6
Author: Svata Dedic <[email protected]>
AuthorDate: Fri Sep 9 19:43:43 2022 +0200

    Reveal things in project explorer by default.
---
 java/java.lsp.server/vscode/package.json     | 2 +-
 java/java.lsp.server/vscode/src/extension.ts | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/java/java.lsp.server/vscode/package.json 
b/java/java.lsp.server/vscode/package.json
index 6769543fa4..29483c7c7e 100644
--- a/java/java.lsp.server/vscode/package.json
+++ b/java/java.lsp.server/vscode/package.json
@@ -128,7 +128,7 @@
                                },
                                "netbeans.revealActiveInProjects": {
                                        "type": "boolean",
-                                       "default": false,
+                                       "default": true,
                                        "description": "Reveals active text 
editor in Projects view"
                                },
                                "java.test.editor.enableShortcuts": {
diff --git a/java/java.lsp.server/vscode/src/extension.ts 
b/java/java.lsp.server/vscode/src/extension.ts
index be5fe624b4..9430743536 100644
--- a/java/java.lsp.server/vscode/src/extension.ts
+++ b/java/java.lsp.server/vscode/src/extension.ts
@@ -1034,6 +1034,9 @@ function doActivateWithJDK(specifiedJDK: string | null, 
context: ExtensionContex
             if (!window.activeTextEditor?.document?.uri) {
                 return;
             }
+            if (!tv.visible) {
+                return;
+            }
             let vis : Visualizer | undefined = await ts.findPath(tv, 
window.activeTextEditor?.document?.uri?.toString());
             if (!vis) {
                 return;


---------------------------------------------------------------------
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

Reply via email to