-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.inspect
does not return the updated setting but .get
does
#135121
Comments
@sandy081 does this constitute a breaking API change? |
It seems to work for me. I am using following sample vscode.commands.registerCommand('testExtension.helloWorld', async (arg) => {
vscode.workspace.getConfiguration().update('testExtension.testSetting', !vscode.workspace.getConfiguration().get('testExtension.testSetting'), vscode.ConfigurationTarget.Global);
});
vscode.workspace.onDidChangeConfiguration(e => {
console.log('get', vscode.workspace.getConfiguration().get('testExtension.testSetting'));
console.log('inspect', vscode.workspace.getConfiguration().inspect('testExtension.testSetting'));
}); console log statement for Can you please provide the sample using which you are able to repro? |
It happens with extension but only on Github actions: microsoft/vscode-python#17708. We'll see if we can shrink down the sample for you to use, and provide it here soon. |
Still working on getting a minimal repro. |
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
workspace.onDidChangeConfiguration
..inspect
and.get
:.get
returns the correct info andinspect
doesn't.The text was updated successfully, but these errors were encountered: