8000 Ensure proper document match to avoid empty outline (Symbols) (#318) · brandonwillard/python-lsp-server@0487a06 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div id="repo-content-pjax-container" class="repository-content " >

Commit 0487a06

Browse files
authored
Ensure proper document match to avoid empty outline (Symbols) (python-lsp#318)
1 parent a79c171 commit 0487a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/plugins/symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def pylsp_document_symbols(config, document):
9191
else:
9292
continue
9393

94-
if _include_def(d) and Path(document.path) == d.module_path:
94+
if _include_def(d) and Path(document.path) == Path(d.module_path):
9595
tuple_range = _tuple_range(d)
9696
if tuple_range in exclude:
9797
continue

0 commit comments

Comments
 (0)
0