-
Notifications
You must be signed in to change notification settings - Fork 31k
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
codeActionOnSave doesn't work on save on focus lost #163920
Comments
I dont know if this related, but today I see My settings:
VS Code Insider:
|
This comment was marked as spam.
This comment was marked as spam.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Code Actions' behavior on save in the editor has been modified from Booleans to an enum with the following options:
The Booleans for This can be enabled with the following setting:
Notebook Code Actions on Save behavior will also be updated soon (cc @Yoyokrazy ) |
Type: Bug
Behaviour
Expected vs. Actual
When I move my mouse from the active editor to another, the previous active editor will auto save the file and perform the codeActionsOnSave, which for my case, the isort, but it doesn't, it only saved the file as I can see that the white point besides the file name disappeared, and the file is not sorted.
While pressing manually
Ctrl+S
in the active editor does perform the code action well, only during auto-save when losting focus doesn't work.Does VSCode have two kinds of OnSave ?
part of my settings:
Steps to reproduce:
git diff
, it does show the saved changeseditor.codeActionsOnSave
within auto-save.With
Ctrl+S
manually, all works.Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
VS Code version: Code 1.72.2 (d045a5e, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
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
Extensions (211)
A/B Experiments
The text was updated successfully, but these errors were encountered: