We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9966f commit 13f4416Copy full SHA for 13f4416
pyls/plugins/symbols.py
@@ -8,7 +8,11 @@
8
9
@hookimpl
10
def pyls_document_symbols(config, document):
11
- if not config.capabilities.get("documentSymbol", {}).get("hierarchicalDocumentSymbolSupport", False):
+ useHierarchicalSymbols = config.plugin_settings('jedi_symbols').get('hierarchical_symbols', None)
12
+ if useHierarchicalSymbols is None:
13
+ useHierarchicalSymbols = config.capabilities.get("documentSymbol", {}).get(
14
+ "hierarchicalDocumentSymbolSupport", False)
15
+ if not useHierarchicalSymbols:
16
return pyls_document_symbols_legacy(config, document)
17
# returns DocumentSymbol[]
18
hide_imports = config.plugin_settings('jedi_symbols').get('hide_imports', False)
0 commit comments