File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright 2017 Palantir Technologies, Inc.
2
2
import logging
3
- from jedi .api .classes import Definition
4
3
from pyls import hookimpl
5
4
from pyls .lsp import SymbolKind
6
5
11
10
def pyls_document_symbols (config , document ):
12
11
# all_scopes = config.plugin_settings('jedi_symbols').get('all_scopes', True)
13
12
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 :
17
16
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
19
18
detailName = d .full_name
20
19
if detailName and detailName .startswith ("__main__." ):
21
20
detailName = detailName [9 :]
Original file line number Diff line number Diff line change @@ -13,6 +13,4 @@ exclude = test/plugins/.ropeproject,test/.ropeproject
13
13
14
14
[tool:pytest]
15
15
testpaths = test
16
- addopts =
17
- --cov-report html --cov-report term --junitxml =pytest.xml
18
- --cov pyls --cov test
16
+
You can’t perform that action at this time.
0 commit comments