Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 4c4e4a3

Browse files
author
Mikhail Arkhipov
committed
Turn off path watcher by default (#1841)
* Remove stale reference * Don't suppress LHS diagnostics on augmented assign * Revert "Don't suppress LHS diagnostics on augmented assign" This reverts commit 6109ac7. * Escape [ and ] * PR feedback * Turn off file watcher by default * Update per change to the setting default (cherry picked from commit 226221e)
1 parent 60f5779 commit 4c4e4a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

TROUBLESHOOTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ fill in the rest of the information. Before the second pass is complete, some in
8686
will be incomplete, and some warnings about unresolved imports may occur. The analysis is
8787
complete when the status message (in the bottom bar) disappears.
8888

89+
### Completions do not update and/or import is still being reported as unresolved after `pip install`
90+
Library search path watching is currently disabled by default in order to mitigate issues reported
91+
in https://github.com/microsoft/python-language-server/pull/1841. If you require this feature, set
92+
`"python.analysis.watchSearchPaths": true` in your user settings.
8993

9094
## Filing an issue
9195

src/LanguageServer/Impl/LanguageServer.Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public async Task DidChangeConfiguration(JToken token, CancellationToken cancell
6666
var userConfiguredPaths = GetUserConfiguredPaths(pythonSection);
6767

6868
HandleUserConfiguredPathsChanges(userConfiguredPaths);
69-
HandlePathWatchChanges(GetSetting(analysis, "watchSearchPaths", true));
69+
HandlePathWatchChanges(GetSetting(analysis, "watchSearchPaths", false));
7070
HandleDiagnosticsChanges(pythonSection, settings);
7171
HandleCodeActionsChanges(pythonSection);
7272

0 commit comments

Comments
 (0)