File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11# Copyright 2017 Palantir Technologies, Inc.
22import logging
3- from jedi .api .classes import Definition
43from pyls import hookimpl
54from pyls .lsp import SymbolKind
65
1110def pyls_document_symbols (config , document ):
1211 # all_scopes = config.plugin_settings('jedi_symbols').get('all_scopes', True)
1312 definitions = document .jedi_names (all_scopes = False )
14- def transform (d : Definition ):
15- includeD = _include_def (d )
16- if includeD is None :
13+ def transform (d ):
14+ include_d = _include_def (d )
15+ if include_d is None :
1716 return None
18- children = [dt for dt in (transform (d1 ) for d1 in d .defined_names ()) if dt ] if includeD else None
17+ children = [dt for dt in (transform (d1 ) for d1 in d .defined_names ()) if dt ] if include_d else None
1918 detailName = d .full_name
2019 if detailName and detailName .startswith ("__main__." ):
2120 detailName = detailName [9 :]
You can’t perform that action at this time.
0 commit comments