diff --git a/deadlock-plugins/deadlock-extension/package.json b/deadlock-plugins/deadlock-extension/package.json index 55c12b9f7360887cc0b9274f646f205b31e263b6..1f5fe4fe08e36d9ae31843b673c63625d35261a3 100644 --- a/deadlock-plugins/deadlock-extension/package.json +++ b/deadlock-plugins/deadlock-extension/package.json @@ -55,8 +55,8 @@ { "id": "deadlockPanel", "name": "Explorer", - "icon": "media/dep.svg", - "contextualTitle": "Deadlock" + "contextualTitle": "Deadlock", + "when": "deadlock.inContainer" }, { "id": "help", @@ -68,7 +68,7 @@ "name": "Commands", "icon": "media/dep.svg", "contextualTitle": "Deadlock", - "when": "deadlock.showCommands" + "when": "deadlock.inContainer" } ] }, diff --git a/deadlock-plugins/deadlock-extension/src/extension.ts b/deadlock-plugins/deadlock-extension/src/extension.ts index e9f353467a38d7ecdf4ce3203fff0ae99666be8d..3f52e208f5b7ffa487996eb8b25f324c79339991 100644 --- a/deadlock-plugins/deadlock-extension/src/extension.ts +++ b/deadlock-plugins/deadlock-extension/src/extension.ts @@ -18,10 +18,10 @@ export async function activate(context: ExtensionContext) { const deadlockPanelProvider = new DepNodeProvider(); window.registerTreeDataProvider('deadlockPanel', deadlockPanelProvider); if (isDocker()) { - commands.executeCommand('setContext', 'deadlock.showCommands', true); + commands.executeCommand('setContext', 'deadlock.inContainer', true); window.registerTreeDataProvider('commandTree', new CommandTreeProvider(context)); } else { - commands.executeCommand('setContext', 'deadlock.showCommands', false); + commands.executeCommand('setContext', 'deadlock.inContainer', false); } try { await userConfig.init();