diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index 199f9ad..0f673fb 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -28,7 +28,10 @@ def update_sys_path(path_to_add: str, strategy: str) -> None: # Ensure that we can import LSP libraries, and other bundled libraries. -BUNDLED_LIBS = os.fspath(pathlib.Path(__file__).parent.parent / "libs") +BUNDLE_DIR = pathlib.Path(__file__).parent.parent +BUNDLED_LIBS = os.fspath(BUNDLE_DIR / "libs") +# Always use bundled server files. +update_sys_path(os.fspath(BUNDLE_DIR / "tool"), "useBundled") update_sys_path( BUNDLED_LIBS, os.getenv("LS_IMPORT_STRATEGY", "useBundled"),