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

Language server didn't start for standalone files #83

Open
istudyatuni opened this issue Nov 5, 2022 · 1 comment
Open

Language server didn't start for standalone files #83

istudyatuni opened this issue Nov 5, 2022 · 1 comment

Comments

@istudyatuni
Copy link

istudyatuni commented Nov 5, 2022

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

@istudyatuni istudyatuni changed the title Language server didn't start for single files Language server didn't start for standalone files Nov 5, 2022
@rchl
Copy link
Member

rchl commented Nov 5, 2022

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants