WIP: Use cargo check for on-disk diagnostics

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-12-23 18:35:50 +01:00
parent b9d1ca4341
commit 7b453beebc
7 changed files with 84 additions and 16 deletions

View file

@ -226,7 +226,11 @@ impl LanguageServer {
process_id: Default::default(),
root_path: Default::default(),
root_uri: Some(root_uri),
initialization_options: Default::default(),
initialization_options: Some(json!({
"checkOnSave": {
"enable": false
},
})),
capabilities: lsp_types::ClientCapabilities {
experimental: Some(json!({
"serverStatusNotification": true,