question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hide "XML Document" Tree View for Non-XML Documents

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Yanpascommented, Mar 11, 2018

I don’t need it even in xml docs, hope to see config that disables it

2reactions
Danieleeeecommented, Jun 16, 2017

Hi @DotJoshJohnson , you can activate this extension only under xml language. In package.json:

"activationEvents": [
        "onLanguage:xml"
    ],
"contributes": {
        "languages": [{
            "id": "xml",
            "aliases": [
                "XML",
                "xml"
            ],
            "extensions": [
                ".xml"
            ]
        }],
 "grammars": [{
            "language": "xml"
        }],

So we avoid triggering the extension with unsupported programming languages ​​and consequently saving resources

Read more comments on GitHub >

github_iconTop Results From Across the Web

Populate tree view without values from XML document in ...
Using Visual C# in Visual Studio 2010 I followed the following example to add the nodes of an XML document to a tree...
Read more >
Remove elements, attributes, and nodes from an XML tree
In this article​​ You can modify an XML tree, removing elements, attributes, and other types of nodes. Removing a single element or a...
Read more >
how to display only parent nodes in xml tree view control ...
Text; LoadXMLTree(txtFilePath.Text); binding the xml file to tree view as shown below private void LoadXMLTree(string fileName) { try { ...
Read more >
Hide python toolbox metadata xml in catalog view/pane
The display of the metadata files in the treeview is not needed and could/should be hidden in the treeview (similar to the way...
Read more >
Understanding the XML Tree
The XML tree pane contains a view on the internal structure of the linked XML file(s). Every node in the file (including elements...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found