Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36f00ed

Browse files
authored
Remove coder.openFromSidebar from command list (#364)
1 parent 2d428eb commit 36f00ed

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@
192192
}
193193
],
194194
"menus": {
195+
"commandPalette": [
196+
{
197+
"command": "coder.openFromSidebar",
198+
"when": "false"
199+
}
200+
],
195201
"view/title": [
196202
{
197203
"command": "coder.logout",

src/commands.ts

+4
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ export class Commands {
351351
treeItem.workspaceFolderPath,
352352
true,
353353
)
354+
} else {
355+
// If there is no tree item, then the user manually ran this command.
356+
// Default to the regular open instead.
357+
return this.open()
354358
}
355359
}
356360

0 commit comments

Comments
 (0)