How to focus a custom view when writing a VS Code extension?
问题 I need help with my VS Code extension. I've written a custom view which works just fine, however I'd like to activate / focus / bring into view that view by using a keyboard shortcut or a context menu command. I am unable to find how to use the VS code API to achieve that. context.subscriptions.push(vscode.commands.registerCommand('extensionId.showView', () => { // how to do that? })); I know this can be done, because one can display the file explorer by using this code snppet: vscode