-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce pyls.extraSysPath configuration
Before this commit, there is no way to specify extra "sys path" for completion, lint-ing, and so on: passing it via PYTHONPATH might cause unintentional side effect for pyls itself. In order to explicitly specify extra "sys path", this commit introduces pyls.extraSysPath configuration, and adds its value to extra_sys_path at Document construction. After this commit, Document.sys_path() returns the list of paths in the order below. 1. source root(s) in the workspace 2. extra sys path (introduced by this commit) 3. sys.path of Python runtime pyls.extraSysPath configuration accepts any path, even if it referring outside of the workspace. BTW, paths configured via pyls.plugins.jedi.extra_paths will be added after values above at Document.jedi_script(). Therefore, pyls.extraSysPath configuration is also useful at putting paths at the front of runtime sys.path for jedi plugin.
- Loading branch information
1 parent
6b58a1e
commit 6d05cc3
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters