Skip to content

Commit

Permalink
Merge pull request #70 from zhixuan-lin/module_path_fix
Browse files Browse the repository at this point in the history
Fix workspace symbol retrieval error due to updates in Jedi 0.18.0
  • Loading branch information
pappasam authored Feb 12, 2021
2 parents 0493c67 + 5e8c96c commit 9fc4671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jedi_language_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ def workspace_symbol(
jedi_utils.lsp_symbol_information(name)
for name in names
if name.module_path
and name.module_path.startswith(workspace_root)
and not _ignore_folder(name.module_path)
and str(name.module_path).startswith(workspace_root)
and not _ignore_folder(str(name.module_path))
)
symbols = list(itertools.islice(_symbols, 20))
return symbols if symbols else None
Expand Down

0 comments on commit 9fc4671

Please sign in to comment.