-
Notifications
You must be signed in to change notification settings - Fork 86
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
Hide "XML Document" Tree View for Non-XML Documents #104
Comments
There is currently no official API available to turn the custom view on and off, but I'll play around with it to see if I can make something work. While an event is raised by VS Code when the user "activates" the view, it is a "one-way" street. I can only listen to the event to know when a user opens the view, I can't raise an event to close the view. I'll do a little research on this and submit an issue to the main VS Code repo if needed. |
Hi @DotJoshJohnson ,
So we avoid triggering the extension with unsupported programming languages and consequently saving resources |
@Danieleeee - Extension activation is handled in the |
@Danieleeee - Right, but as I said, I don't seem to have any control over when the custom view is turned on and off. It looks like the ability to toggle custom views is being worked on (per microsoft/vscode#27823). I'll keep an eye on the progression of these APIs. Custom views is a new feature, so I'm sure we'll see plenty of movement in this space in the coming weeks/months. |
Ok, thanks |
@DotJoshJohnson taking a look at the issue you linked, the ability to selectively hide has been merged: It's implmented like these: Looks like it a part of this release: microsoft/vscode#28387 I can write a pull if you want. 😸 |
@Silvenga - Thanks for the heads up! If you want to submit a PR, I'll be more than happy to merge it in. Otherwise, I'll have time Sunday or Monday to make the change. |
I don't need it even in xml docs, hope to see config that disables it |
This will be taken care of in the |
Released in |
Like the title says, you should only display the explorer tree view when a user opens a XML document. It's a waste of space having it there all the time.
Not sure about it, but I believe this could be achieved using the
onLanguage
activation event:https://code.visualstudio.com/docs/extensionAPI/activation-events
The text was updated successfully, but these errors were encountered: