Skip to content

Commit d662c8b

Browse files
authored
Ensure that jedi language server uses jedi shipped with the extension (#15603)
1 parent c11009f commit d662c8b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

news/2 Fixes/15586.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure that jedi language server uses jedi shipped with the extension.

pythonFiles/runJediLanguageServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Add the lib path to our sys path so jedi_language_server can find its references
55
EXTENSION_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
6-
sys.path.append(os.path.join(EXTENSION_ROOT, "pythonFiles", "lib", "python"))
6+
sys.path.insert(0, os.path.join(EXTENSION_ROOT, "pythonFiles", "lib", "python"))
77

88
import pygls.protocol
99

0 commit comments

Comments
 (0)