Skip to content

Commit 76eb5e2

Browse files
committed
Revert "Revert "Always use the same jedi environment (#4687)" (#4850)"
This reverts commit 0268ef4.
1 parent 2412a58 commit 76eb5e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

news/2 Fixes/4687.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Ensure `Jedi` uses the currently selected intepreter.
2+
(thanks [Selim Belhaouane](https://github.com/selimb))

pythonFiles/completion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ def _process_request(self, request):
562562
jedi.api.names(
563563
source=request.get('source', None),
564564
path=request.get('path', ''),
565-
all_scopes=True),
565+
all_scopes=True,
566+
environment=self.environment),
566567
request['id'])
567568

568569
script = jedi.Script(

0 commit comments

Comments
 (0)