Open tsalinger opened 6 years ago
@tsalinger I am not able to reproduce this on insiders also when running from dev. Can you please try disabling extensions?
@sandy081 I can still reproduce this in the latest insiders with all extensions disabled. Maybe the key is to have the following user settings to start from:
{
"editor.accessibilitySupport": "off",
"files.autoSave": "onWindowChange",
"workbench.colorTheme": "Default Light+",
}
Also make sure to use "files.autoSave": "onWindowChange"
in the settings arrray.
The bug seems to appear less frequently when the VS Code window is not maximized.
@tsalinger No luck. May be I will sit with you tomorrow and look into it on your machine
I've seen a somewhat similar issue. On a laptop it switches to the default dark theme (for about 10ms) and then back at random (cannot reproduce reliably).
There is a comment on a linked issue:
During the import process the settings might be reverted to an empty object for an instant. This leads to a flickering from a light theme to the default dark theme and back. Additionally, the 'screen-reader optimized' message box might be visible for an instant.
Does that mean that the reason of this flickering is some extension or a problem with settings file or API?
@usernamehw We investigated on this issue and found out that this is happening because of non-atomic nature of write and read. If a setting is being written into the file and the file is being read at the same time, read is returning empty contents. This can happen when multiple updates are happening.
I just lost my user settings a few seconds after starting code :disappointed:
VS Code version: 1.51.0 upgraded 4 days ago OS version: Ubuntu 20.04
I've seen this multiple times now via background software updates. Grabbing my settings.json from backup for the third time… :'(
(yes I should probably turn on Settings Sync, but IMHO that's not an adequate solution to this problem…)
Noted, I have added some fixes recently which might prevent this. Can you please try with our recent insiders and see if you see this issue yet?
Issue Type: Bug
Observations: The accessibilitySupport prompt popups shortly before it switches to the dark theme Sometimes only a restart of VS Code gets the light theme back.
VS Code version: Code - Insiders 1.23.0-insider (fe9d9532ea6264152c144bd2ba3a6db2cd1732e3, 2018-04-12T05:17:00.120Z) OS version: Windows_NT x64 10.0.16299
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz (4 x 2694)| |GPU Status|2d_canvas: enabledflash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled| |Memory (System)|7.88GB (3.95GB free)| |Process Argv|C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe| |Screen Reader|yes| |VM|0%|
Extensions (13)
Extension|Author (truncated)|Version ---|---|--- vscode-css-formatter|aes|1.0.1 numbered-bookmarks|ale|0.11.1 regex|chr|0.1.0 vscode-eslint|dba|1.4.8 gitlens|eam|8.2.1 tslint|eg2|1.0.28 vsc-material-theme|Equ|1.5.1 python|ms-|2018.3.1 debugger-for-chrome|msj|4.3.0 gitlink|qez|0.4.2 ayu|tea|0.14.0 vscode-todo-highlight|way|0.5.12 markdown-pdf|yza|0.1.8 (3 theme extensions excluded)