sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language server didn't start for standalone files

istudyatuni opened this issue · comments

commented

Rust-analyzer has support for standalone files: rust-lang/rust-analyzer#8955, it works in vs-code. There was an issue #61, but it was closed without any info

Error: failed to discover workspace

Apparently this requires extra code on our side that explicitly passes file paths to the server on initialization. Something like https://github.com/SomeoneToIgnore/rust-analyzer/blob/5c0369b1d0c5351672f2a16e9a0d17beee84bcbe/editors/code/src/client.ts#L53-L59

It means that newly opened files would probably not work so it's a bit weird approach...