You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yesterday's commit 3fd23f1 added the option lsp-pyright-venv-directory, but there was already an option lsp-pyright-venv-path, which, judging by the description, has the same function.
BTW, both options have an incomplete :type spec. Since they can also be nil, the type should be something like this:
(defcustom lsp-pyright-venv-path nil
"Path to folder with subdirectories that contain virtual environments.
Virtual Envs specified in pyrightconfig.json will be looked up in this path."
:type '(choice (string :tag "Venv path")
(const :tag "No venv path" nil))
:group 'lsp-pyright)
That way, they are displayed correctly in the Customize buffer and can be properly type-checked.
The text was updated successfully, but these errors were encountered:
Ah, thanks for the clarification. Admittedly, I didn't look at the code, just at the doc strings, which didn't make the difference clear to me. If you would like, I could prepare a PR to suggest an update to the doc strings.
Yesterday's commit 3fd23f1 added the option
lsp-pyright-venv-directory
, but there was already an optionlsp-pyright-venv-path
, which, judging by the description, has the same function.BTW, both options have an incomplete
:type
spec. Since they can also benil
, the type should be something like this:That way, they are displayed correctly in the Customize buffer and can be properly type-checked.
The text was updated successfully, but these errors were encountered: