LSP-pyright
LSP-pyright copied to clipboard
Expose "Organize Imports" as a server command in the command palette
I would like to be able to run "LSP-pyright: Organize Imports" from the command palette.
This issue should probably be in the LSP repo. It should be possible to provide that generally for all servers that support the generic source.organizeImports
code action.
https://github.com/sublimelsp/LSP/blob/64002d3a263943ba394a9a61830eab6147b3e820/plugin/core/sessions.py#L702-L704
And I guess it would make sense to have it together with other actions, in the context menu. That would be consistent.