diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index 74bc9fb..5aa0d49 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -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. # **********************************************************