Skip to content
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

Expose "Organize Imports" as a server command in the command palette #7

Open
rwols opened this issue Jul 31, 2020 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@rwols
Copy link
Member

rwols commented Jul 31, 2020

I would like to be able to run "LSP-pyright: Organize Imports" from the command palette.

@rchl
Copy link
Member

rchl commented Jul 31, 2020

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

@rchl
Copy link
Member

rchl commented Jul 31, 2020

And I guess it would make sense to have it together with other actions, in the context menu. That would be consistent.

@jfcherng jfcherng added the enhancement New feature or request label Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants