-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
autosave afterDelay cannot trigger code actions, e.g. import resorting #203050
Comments
Python extension does not trigger code actions. VS Code should be the one getting this from all registered import organizers. Moving this to VS Code repo. |
well, is the code action triggered by lsp client, vscode itself in this situation? |
That is correct. |
related to discussion here: #200881 it's still under discussion atm |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines. Happy Coding! |
Type: Bug
Behaviour
Expected vs. Actual
the code action should be triggered after auto saving, but it was not triggered. it could be reproduced w/wo remote environment.
the code action would be triggered if I save the file explicitly, e.g.
Ctrl+S
pressed.Steps to reproduce:
source.organizeImports
not triggered, the imports are not sorted.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
Extension version: 2023.22.1
VS Code version: Code 1.85.2 (8b37750, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Darwin arm64 23.2.0
System Info
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: