Skip to content

Commit

Permalink
fix: add tool path so isort works without bundled version (#417)
Browse files Browse the repository at this point in the history
fixes #316
  • Loading branch information
iloveitaly authored Aug 16, 2024
1 parent 3fe5d61 commit 19c3556
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def update_sys_path(path_to_add: str, strategy: str) -> None:
os.getenv("LS_IMPORT_STRATEGY", "useBundled"),
)

# https://github.com/microsoft/vscode-isort/issues/316#issuecomment-2103588949
update_sys_path(os.fspath(pathlib.Path(__file__).parent.parent / "tool"), "useBundled")

# **********************************************************
# Imports needed for the language server goes below this.
# **********************************************************
Expand Down

0 comments on commit 19c3556

Please sign in to comment.