-
Notifications
You must be signed in to change notification settings - Fork 133
PLS doesn't handle changes to python.autoComplete.extraPaths setting #507
Comments
LS receives |
It didn't change AFAIK. let searchPaths = interpreterData ? interpreterData.searchPaths.split(path.delimiter) : [];
const settings = this.configuration.getSettings();
if (settings.autoComplete) {
const extraPaths = settings.autoComplete.extraPaths;
if (extraPaths && extraPaths.length > 0) {
searchPaths.push(...extraPaths);
}
} However, change of configuration does not restart the LS and current implementation is not capable of handling the search path update without the restart. Restarting IDE is not necessary, there is 'Reload Window' command in VS Code. |
Is it not possible for the LS to react to changes to this setting if it was somehow propagated to LS. |
May be part of #1213 |
With #1289 merged, this could now be possible. Paths are now resolved later at the first But we'd need to decide whether or not |
Moving away from |
I'm going to close this in favor of #1388. This should now be doable (as previously said). The setting name is likely to change, as it's a relic. |
If I define one or more entries in the
python.autoComplete.extraPaths
setting, the PLS correctly uses the defined path(s) as part of its import resolution. However, if I modify the setting, the PLS doesn't correctly pick up the change. Closing and opening the IDE solves the problem.I'm not sure if this is a problem with the vscode python extension or the PLS.
The text was updated successfully, but these errors were encountered: