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
This is very similar to a previously reported issue #36448
Unfortunately we (Python Extension) didn't catch this bug as our CI tests run against the stable versions of VS Code and we released our extension a day before VSC. Once a new version of VS Code was released our CI tests started to fail.
In light of this issue we'll consider either running our tests against VSC insiders or releasing after VSC (TBD).
Here are the steps to replicate the issue:
Use VSC Insiders or latest stable version (Version 1.23.0)
Create a multiroot workspace folder name workspace1
Create workspace settings file with the setting editor.autoIndent = false
Create a workspace folder settings file with the same settings
Execute the following code inside VS Code (via an extension)
You'll see that the last update fails, expected value is false, but we get true.
constworkspaceUri=Uri.file('full path to workspace1');letsettings=workspace.getConfiguration('editor',workspaceUri);awaitsettings.update('autoIndent',false,ConfigurationTarget.Workspace);settings=workspace.getConfiguration('editor',workspaceUri);awaitsettings.update('autoIndent',true,ConfigurationTarget.WorkspaceFolder);settings=workspace.getConfiguration('editor',workspaceUri);console.log(`editor.autoIndent is ${settings.get('autoIndent')}, and expected true`);settings=workspace.getConfiguration('editor',workspaceUri);awaitsettings.update('autoIndent',true,ConfigurationTarget.Workspace);settings=workspace.getConfiguration('editor',workspaceUri);awaitsettings.update('autoIndent',false,ConfigurationTarget.WorkspaceFolder);// Trick, place a delay and the values get loaded// await new Promise(resolve => setTimeout(resolve, 2000))settings=workspace.getConfiguration('editor',workspaceUri);console.log(`editor.autoIndent is ${settings.get('autoIndent')}, and expected false`);
VS Code version: Code - Insiders 1.24.0-insider (2404210, 2018-05-04T08:05:15.549Z)
OS version: Darwin x64 17.5.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)
I have a similar issue, also in VSCode 1.23.0, but in my case, updating the global settings seems to have no effect until a reload or until workspace settings are changed:
The global setting 'sshfs.configs' looks something like this:
The Workspace setting also looks that way. If the setting is missing there, the bug doesn't happen
I change that array (adding/modifying/removing entries) either using the editor, .update() or both (Code-wise, I update using vscode.ConfigurationTarget.Global as third parameter)
getConfiguration('sshfs').inspect('configs') keeps returning the old values
Only when I reload the window or change the Workspace settings does it update (as in, .inspect('configs').globalValue now returns the updated settings)
(somehow changing the Workspace settings busts the "global settings cache")
At this point, changing the global settings has again no effect until the above step is repeated
Both tested with and without any extensions (including built-in ones)
VS Code version: Code 1.23.0 (7c7da59, 2018-05-03T16:44:55.614Z)
OS version: Windows_NT x64 10.0.15063
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz (8 x 2594)
Issue Type: Bug
This is very similar to a previously reported issue #36448
Unfortunately we (Python Extension) didn't catch this bug as our CI tests run against the stable versions of VS Code and we released our extension a day before VSC. Once a new version of VS Code was released our CI tests started to fail.
In light of this issue we'll consider either running our tests against VSC insiders or releasing after VSC (TBD).
Here are the steps to replicate the issue:
workspace1
editor.autoIndent = false
false
, but we get true.setTimeout
(delay) will get around this issue. (same as Updates to workspace settings not available immediately in multi-root workspaces #36448)VS Code version: Code - Insiders 1.24.0-insider (2404210, 2018-05-04T08:05:15.549Z)
OS version: Darwin x64 17.5.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (27)
The text was updated successfully, but these errors were encountered: