File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ Only available in Emacs 27 and above."
156
156
:type 'list
157
157
:group 'lsp-pyright )
158
158
159
+ (defvar lsp-pyright--project-info-cache nil
160
+ " Used to cache results from project management tools between invocations." )
161
+
159
162
(defun lsp-pyright--locate-pipenv ()
160
163
" Get the path of the pipenv executable. If
161
164
`lsp-pyright-pipenv-executable-cmd' is non-nil it will be
@@ -202,8 +205,7 @@ CMD does not return a failure status."
202
205
" Queries poetry or pipenv for project information and returns
203
206
either the virtualenv or the python interpreter of the project
204
207
depending on whether the value of PROPERTY is 'python or 'venv."
205
- (unless (and (boundp 'lsp-pyright--project-info-cache )
206
- lsp-pyright--project-info-cache)
208
+ (unless lsp-pyright--project-info-cache
207
209
(setq-local
208
210
lsp-pyright--project-info-cache
209
211
(let ((project-info
You can’t perform that action at this time.
0 commit comments