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

Skip to content

Commit 05402b7

Browse files
committed
Default openFromSidebar to open
Just in case it is somehow manually triggered outside the tree context, although this should not generally be a problem now that it is hidden from the command palette.
1 parent 5532876 commit 05402b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commands.ts

Lines changed: 4 additions & 0 deletions
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)