sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
70 stars 11 forks source link

Handle method `experimental/moveItem` #28

Closed thomaseizinger closed 9 months ago

thomaseizinger commented 3 years ago

Is your feature request related to a problem? Please describe.

I am using Sublime-LSP with rust-analyzer. RA has several "experimental" commands. For example, item movers: https://github.com/rust-analyzer/rust-analyzer/pull/8054

Is there a way for defining a shortcut to execute such an experimental command and have things just work?

Describe the solution you'd like

Being able to configure shortcuts for using RA's item movers command.

Describe alternatives you've considered

n/a

Additional context

n/a

rwols commented 3 years ago

This looks like the Hover Actions thing described here: https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#hover-actions-1

As with all such custom requests it requires (perhaps considerable) glue code for every client out there. So I'll move this to LSP-rust-analyzer.