You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement conditional visibility for custom views #29436
If like me you're trying to figure out how to make your viewport only show up if when your extension has declared something loaded, the key is using the "setContext" command: vscode.commands.executeCommand("setContext", "is-running-storybooks-vscode", true) which you can then use inside a "when":
Activity
sandy081 commentedon Jun 26, 2017
Implemented as part of #27823
sandy081 commentedon Jun 26, 2017
To verify:
viewsOr you can use our samples here - https://github.com/Microsoft/vscode-extension-samples/tree/master/tree-view-sample
Verify that views are shown / hidden based on the
whencontext value you provide while contributing the view.weinand commentedon Jun 28, 2017
Sandeep Somavarapu (@sandy081) I verified with my Loaded Scripts Explorer and it works great!
orta commentedon Oct 2, 2017
If like me you're trying to figure out how to make your viewport only show up if when your extension has declared something loaded, the key is using the
"setContext"command:vscode.commands.executeCommand("setContext", "is-running-storybooks-vscode", true)which you can then use inside a"when":( Figure it out by reading this example )