diff options
author | Philipp Mildenberger | 2023-04-05 16:10:49 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 19:58:17 +0000 |
commit | 521cdec5a1a53c61d38ce5a1df85f82857f59149 (patch) | |
tree | 6fff47c0f8ca67ce5cb6336714014d787553b8ff /helix-lsp | |
parent | dcb07673f8f1f22b7a5f8fd56b8dd74107e3096e (diff) |
Remove TODO comment in helix_lsp::Registry::restart and add doc-comment on top of function instead
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs index 66082503..989c5e2f 100644 --- a/helix-lsp/src/lib.rs +++ b/helix-lsp/src/lib.rs @@ -680,6 +680,9 @@ impl Registry { Ok(client) } + /// If this method is called, all documents that have a reference to language servers used by the language config have to refresh their language servers, + /// as it could be that language servers of these documents were stopped by this method. + /// See [helix_view::editor::Editor::refresh_language_servers] pub fn restart( &mut self, language_config: &LanguageConfiguration, @@ -707,8 +710,6 @@ impl Registry { .insert(name.clone(), vec![client.clone()]) .unwrap(); - // TODO what if there are multiple instances for different workspaces? - // I think the language servers will be stopped without being restarted, which is not intended for old_client in old_clients { tokio::spawn(async move { let _ = old_client.force_shutdown().await; |