]> git.lizzy.rs Git - rust.git/commit
Merge #5516
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 24 Jul 2020 13:53:41 +0000 (13:53 +0000)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 13:53:41 +0000 (13:53 +0000)
commit5b13c2411f025a16495f5828afe2def6e9220102
tree6a96e67439e89104e7a9076185424fc609ffb27f
parentc3defe2532ba6ffd12a13bcbc8fdeda037665efc
parenta84dc4425a05f0cdb1edefcd77de008940824372
Merge #5516

5516: Better LSP conformance r=matklad a=vsrs

At the moment rust-analyzer does not fully conform to the LSP. This PR fixes two LSP related issues:

1) rust-analyzer sends predefined server capabilities and does not take supplied client capabilities in mind.
2) rust-analyzer uses dynamic `textDocument/didSave` registration even if the client does not support it.

Co-authored-by: vsrs <vit@conrlab.com>