-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement conditional visibility for custom views #29436
Comments
Implemented as part of #27823 |
To verify:
Or 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 |
@sandy081 I verified with my Loaded Scripts Explorer and it works great! "views": {
"explorer": [
{
"id": "extension.node-debug.loadedScriptsExplorer",
"name": "Loaded Scripts",
"when": "inDebugMode && debugType == 'node'"
}
]
}, |
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 "views": {
"explorer": [
{
"id": "storybook",
"name": "Storybook",
"when": "is-running-storybooks-vscode"
}
]
} ( Figure it out by reading this example ) |
Ability to define a condition when a custom view can be visible or not
The text was updated successfully, but these errors were encountered: