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
Allow extra_paths to be placed in front of sys.path.
* Add pylsp.plugins.jedi.prioritize configuration key
Note that Document.sys_path should be removed OR the prioritize logic moved inside this method. Either option requires breaking the API.
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Python Language Server Configuration
2
2
This server can be configured using the `workspace/didChangeConfiguration` method. Each configuration option is described below. Note, a value of `null` means that we do not set a value and thus use the plugin's default value.
|`pylsp.configurationSources`|`array` of unique `string` (one of: `'pycodestyle'`, `'flake8'`) items | List of configuration sources to use. |`["pycodestyle"]`|
7
7
|`pylsp.plugins.autopep8.enabled`|`boolean`| Enable or disable the plugin (disabling required to use `yapf`). |`true`|
@@ -20,6 +20,7 @@ This server can be configured using the `workspace/didChangeConfiguration` metho
20
20
|`pylsp.plugins.flake8.select`|`array` of unique `string` items | List of errors and warnings to enable. |`null`|
21
21
|`pylsp.plugins.jedi.auto_import_modules`|`array` of `string` items | List of module names for jedi.settings.auto_import_modules. |`["numpy"]`|
22
22
|`pylsp.plugins.jedi.extra_paths`|`array` of `string` items | Define extra paths for jedi.Script. |`[]`|
23
+
|`pylsp.plugins.jedi.prioritize`|`boolean`| Whether to place extra_paths at the beginning (true) or end (false) of `sys.path`|`false`|
23
24
|`pylsp.plugins.jedi.env_vars`|`object`| Define environment variables for jedi.Script and Jedi.names. |`null`|
24
25
|`pylsp.plugins.jedi.environment`|`string`| Define environment for jedi.Script and Jedi.names. |`null`|
25
26
|`pylsp.plugins.jedi_completion.enabled`|`boolean`| Enable or disable the plugin. |`true`|
0 commit comments