-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Return proper error code when server is loading #8397
Conversation
Unsure about this. The spec doesn't specify when ContentModified is used according to it's intended cases here: sereve is initialized, but it still constantly modifies it's internal model of the world, as fileds are still being rear from the disk. Why does this matter at all? The clients should just silently ignore content modified errors. |
@matklad This doesn't matter much. I was just surprised by the message and thought that |
Let's just change the message to "waiting for |
@matklad I updated the PR with your suggestion just in case. Feel free to merge or close. |
Thanks! bors r+ |
In case your are curious, microsoft/language-server-protocol#511 is the related protocol issue z |
changelog fix (first contribution) improve "still loading" error message |
See rust-analyzer/lsp-server#29 for clarification of |
When requests are made to rust-analyzer and the server is still loading, a response error is returned with the code
ContentModified
and text"Rust Analyzer is still loading..."
. This error code doesn't seem to be the more appropriate for this situation. UsingServerNotInitialized
seems better.As this is such a small change, I have not created an issue for it.