From 36f00ede6329b20efd6af80a8785c4b1aa19fc00 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 1 Oct 2024 12:55:16 -0700 Subject: [PATCH] Remove coder.openFromSidebar from command list (#364) --- package.json | 6 ++++++ src/commands.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/package.json b/package.json index bf7687cc..710f947f 100644 --- a/package.json +++ b/package.json @@ -192,6 +192,12 @@ } ], "menus": { + "commandPalette": [ + { + "command": "coder.openFromSidebar", + "when": "false" + } + ], "view/title": [ { "command": "coder.logout", diff --git a/src/commands.ts b/src/commands.ts index f2956d29..d26dae09 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -351,6 +351,10 @@ export class Commands { treeItem.workspaceFolderPath, true, ) + } else { + // If there is no tree item, then the user manually ran this command. + // Default to the regular open instead. + return this.open() } }