Add support for selective outline enablement per file #427
Labels
enhancement
New feature or request
performance
This issue or enhancement is related to performance concerns
symbols
Milestone
Today we can enable/disable the symbol provider with the
xml.symbols.enabled
preference on client side (very helpful for big file because vscode outline is very slow with big symbols).But when you disable the symbol provider with this preference, all XML files even when there are little doesn't display the content of the outline. It's really shame.
To fix this problem, we could add a new preferences like
xml.symbols.disabled.patterns
which is an array of pattern file used to disable symbols if XML file match the pattern. To manage matching of pattern file, we could refactor the xml file association class https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/settings/XMLFileAssociation.java to an new class like FilePatternMatching class and XMLFileAssociation could extend it and new file like XMLSymbolsPatterns could extend it.The text was updated successfully, but these errors were encountered: