-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
info-neededIssue requires more information from posterIssue requires more information from poster
Description
Does this issue occur when all extensions are disabled?: Yes
Version: 1.61.0 (user setup)
OS: Windows_NT x64 10.0.22471
Steps to Reproduce:
Started happening after VSCode release. FYI we haven't been able to reproduce this issue locally, happens with Github action: microsoft/vscode-python#17708 cc @karthiknadig
- Update a setting, for eg.
const pythonConfig = vscode.workspace.getConfiguration('python');
await pythonConfig.update('defaultInterpreterPath', 'pythonPath', false);
- Wait for the change event to fire via
workspace.onDidChangeConfiguration
. - Query configuration via
.inspect
and.get
:
const currentConfig = this.workspace.getConfiguration('python', this.workspaceRoot);
console.log(`Changed path [default]: ${currentConfig.get<string>('defaultInterpreterPath')}`);
console.log('Inspect path [default]', JSON.stringify(currentConfig.inspect('defaultInterpreterPath')));
- Notice
.get
returns the correct info andinspect
doesn't.
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from poster