Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Per-workspace python executable? #73

Open
bennofs opened this issue Nov 2, 2019 · 1 comment
Open

Per-workspace python executable? #73

bennofs opened this issue Nov 2, 2019 · 1 comment

Comments

@bennofs
Copy link

bennofs commented Nov 2, 2019

It would be nice if the lsp-python-ms-python-executable-cmd setting could be scoped to single server instances (workspaces) somehow. If you edit multiple projects in the same instance of Emacs, and some of them are Python2 while others are Python3 (or using different venvs), then there should be a way to assign the correct python version for each.

Scoping the setting to the workspace level makes the most sense to me, since buffers can also be part of multiple workspaces (?) so a buffer-local variable is not a great fit. Also many buffers can be part of a single workspace, so they must share the same python version (which also makes this a bad fit for a buffer local variable).

@yyoncho
Copy link
Member

yyoncho commented Nov 2, 2019

All settings in emacs can be workspace level via .dir-locals. Refer to lsp-mode FAQ section for a guide.

@yyoncho yyoncho closed this as completed Nov 2, 2019
@yyoncho yyoncho reopened this Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants