Closed detly closed 3 years ago
Format Selection/Format Document are options provided by the LSP plugin and are unrelated to Rust Enhanced. Perhaps file an issue over there? It could also be an issue with RLS, IIRC range-formatting used to require unstable options, but I don't know what the current status is. You could also try one of the user forums.
Thanks!
FYI I raised this over on the LSP issues but it turns out that the problem is... neither rls nor rust-analyzer support formatting a selected range. So perhaps this is a documentation issue with this repo, but I'll leave it to your discretion.
Sublime Text 3 (Build 3211) Rust enhanced v2.22.0 OS Name: Ubuntu 20.04
I have LSP installed via Package Control, and the stable and beta releases of RLS installed via Rustup. I do not have Cargo etc. on my system path, but I have added:
...to my LSP settings.
Expected behavior
Both Format document and Format selection should be enabled in the context menu.
Actual behavior
Format document is enabled. Format selection is not.
The fact that Format document is enabled and works makes me think that LSP and RLS are communicating fine, but there's a capability missing or something like that.
Here's some console messages (I removed what I thought was from unrelated plugins, let me know if you want that too):
I honestly don't know what
Unable to open /home/jason/Code/config-st3/Packages/LSP/LSP.sublime-settings
is doing there, since LSP works fine.Unable to open /home/jason/Code/config-st3/Packages/Rust Enhanced/RustEnhanced.sublime-settings
is also a bit weird, since Rust Enhanced seems to use my settings for eg. appearances, Cargo path.