Skip to content

Commit 7c8d388

Browse files
authored
Refine the viewer when be visible. (#50)
1 parent 988db2f commit 7c8d388

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"explorer": [
7777
{
7878
"id": "javaDependencyExplorer",
79-
"name": "Java Dependencies"
79+
"name": "Java Dependencies",
80+
"when": "extensionActivated"
8081
}
8182
]
8283
}

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import { DependencyExplorer } from "./views/depedencyExplorer";
1111

1212
export function activate(context: ExtensionContext) {
1313
Telemetry.sendEvent("activateExtension", {});
14+
15+
commands.executeCommand("setContext", "extensionActivated", true);
16+
1417
Services.initialize(context);
1518
Settings.initialize(context);
1619

0 commit comments

Comments
 (0)