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
Infinite Loop on organizing imports on save #2080
Comments
Oh my god, I was debugging for hours. |
Sorry for the ping but this issue making volar useless. I am also facing this and I think it is critical. |
For temporary workaround Disable organize imports {
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": false
},
} And run organize imports manually, default shortcut Shift + Alt + O |
Additional info: We can see in @sschneider-ihre-pvs GIF example, that first import is not affected. |
I solved the problem by downgrading VSCode to 1.72.2.
|
This is VSCode's regression, please track microsoft/vscode#165326. |
This is solved, we can close this @sschneider-ihre-pvs |
Type: Bug
When codeActionsOnSave -> "source.organizeImports": true, it can lead to an infinite loop of reloading imports and rearranging them to the same position, preventing saveing or changing the file.
Extension version: 1.0.9
VS Code version: Code - Insiders 1.73.0-insider (3544aabd5a2b0da2cd3a6f3fa3f00759aa9d9709, 2022-10-27T21:34:51.585Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: