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
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.76.2. Please try upgrading to the latest version and checking whether this issue remains.
If I now add an unused import to a file while auto-save is enabled it is not getting removed without explicitly triggering a save. Even closing the file is not triggering the code actions.
Another finding I had in the meantime while playing around with the auto-save settings: I can scope down the issue when files.autoSave is set to "afterDelay". The other two options "onFocusChange" and "onWindowChange" correctly trigger the code actions.
Side note: adjusting files.autoSaveDelay seems to have no effect on the issue.
Type: Bug
"editor.formatOnSave": true
or
For reference - the problem was discovered while working on a TypeScript project using the native language server organise imports functionality.
Expected behaviour
I'd expect that code actions on save would also get triggered when auto save is enabled (or at least when the file gets closed).
VS Code version: Code 1.75.0 (Universal) (e2816fe, 2023-02-01T15:24:42.903Z)
OS version: Darwin x64 22.3.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
The text was updated successfully, but these errors were encountered: