source.organizeImports and quickfix unused imports #70
markkimsal
started this conversation in
General
Replies: 1 comment
-
|
I think, maybe, when the IDE asks for source.organizeImports, the LSP should grab the bulk quickfix action and just change the kind and data type to source.organizeImports on the fly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
something's going on with quickfix and source.organizeImports. vscode asks for code actions with "only: 'source.organizeImports'" when I explicitly save, but the LSP responds with quickfix actions.
I changed a few lines about unused imports and it works now, but also it seems to delete the wrong lines if I have an odd number of blanks. Like:
I think it's processing the individual unused imports rather than the bulk one. I think the unused imports needs to be split into 2 separate modules, one for bulk organize imports and one for quick fix (individual plus all actions).
output of extension host
Beta Was this translation helpful? Give feedback.
All reactions