Indicate when project needs a reload

This commit is contained in:
Aleksey Kladov
2020-07-02 15:32:56 +02:00
parent 3ef7676076
commit 4f26a3734e
4 changed files with 51 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ impl GlobalState {
.collect(),
};
let registration = lsp_types::Registration {
id: "file-watcher".to_string(),
id: "workspace/didChangeWatchedFiles".to_string(),
method: "workspace/didChangeWatchedFiles".to_string(),
register_options: Some(serde_json::to_value(registration_options).unwrap()),
};