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
Organize Imports broken in 1.73.0 #165326
Comments
Same thing in Svelte files here |
Same for me, also using Vue (Volar) extension. |
It seems like the combination of these two settings causes to editor to save files in an endless loop:
|
@Zertz In my case, I have (or had before removing "editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.sortImports": true,
"source.fixAll.markdownlint": true,
"source.fixAll": true
} |
Does this reproduce with all extensions disabled? Sounds like it's likely caused by an extension |
No, it doesn't, but it still seems like a regression in VSCode 🤔 I'm using eslint like this person, i.e. also with In my case if I have an import statement like
the organize imports step will remove the trailing comma and then eslint fixAll adds it back again. But instead of doing that just once, it now happens in a continuous loop |
Due to |
@mjbvz Even if that's the case, this doesn't happen on previous VSCode versions. |
This also happens for me. I haven't changed my extension setup since before the last VSCode update. Even if an extension is involved in this, merely updating VSCode shouldn't be causing this. It also happens if I disable ESLint in the save actions. |
Same here on
|
Same here with the |
Same issue using the Astro framework and its language support extension. |
Perhaps this issue might have something to do with the recent changes here: #164035 ? |
Same issue with Astro |
After I turned off 'source.organizeImports' it was fine |
Same issue here, infinite organize import loop with flickering of import statements. I downgraded to version 1.72.2 for now. Hopefully this can be fixed. |
If anyone is here still trying to fix, try do it under workspace settings instead of user settings, fixed the issue for me. |
|
For me it's still glitching with this config:
I had to downgrade to make it work again. |
Couple of observations and ways to fix this
|
…edit via code actions on save #165326
I am still experiencing this problem for Version: 1.73.0 |
This will ship with 1.73 |
Thank you very much for the speeeeeedy action 🚀 |
Type: Bug
After upgrading VSCode to
1.73.0
, the Organize Imports action hangs indefinitely, preventing the editor from closing gracefully. If using as part of"editor.codeActionsOnSave"
, files can no longer be saved. Additionally,import
statement in source files look glitchy, constantly flickering and changing colors from the theme's to white. See screenshots below.Reverting back to September's release fixes the issue for me.
VS Code version: Code 1.73.0 (Universal) (8fa188b, 2022-11-01T15:38:50.881Z)
OS version: Darwin arm64 22.1.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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
Extensions (23)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: