Add language server control tool into the status bar (#32490)

Release Notes:

- Added the language server control tool into the status bar

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
This commit is contained in:
Kirill Bulatov 2025-06-25 19:57:28 +03:00 committed by GitHub
parent 91c9281cea
commit c0acd8e8b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1992 additions and 312 deletions

View file

@ -16164,7 +16164,7 @@ impl Editor {
})
}
fn restart_language_server(
pub fn restart_language_server(
&mut self,
_: &RestartLanguageServer,
_: &mut Window,
@ -16175,6 +16175,7 @@ impl Editor {
project.update(cx, |project, cx| {
project.restart_language_servers_for_buffers(
multi_buffer.all_buffers().into_iter().collect(),
HashSet::default(),
cx,
);
});
@ -16182,7 +16183,7 @@ impl Editor {
}
}
fn stop_language_server(
pub fn stop_language_server(
&mut self,
_: &StopLanguageServer,
_: &mut Window,
@ -16193,6 +16194,7 @@ impl Editor {
project.update(cx, |project, cx| {
project.stop_language_servers_for_buffers(
multi_buffer.all_buffers().into_iter().collect(),
HashSet::default(),
cx,
);
cx.emit(project::Event::RefreshInlayHints);