Properly dedup restarts of language servers
This commit is contained in:
@@ -80,7 +80,6 @@ action!(Save);
|
||||
action!(DebugElements);
|
||||
action!(ActivatePreviousPane);
|
||||
action!(ActivateNextPane);
|
||||
action!(RestartLanguageServer);
|
||||
|
||||
pub fn init(client: &Arc<Client>, cx: &mut MutableAppContext) {
|
||||
pane::init(cx);
|
||||
@@ -120,9 +119,6 @@ pub fn init(client: &Arc<Client>, cx: &mut MutableAppContext) {
|
||||
cx.add_action(|workspace: &mut Workspace, _: &ActivateNextPane, cx| {
|
||||
workspace.activate_next_pane(cx)
|
||||
});
|
||||
cx.add_action(|workspace: &mut Workspace, _: &RestartLanguageServer, cx| {
|
||||
workspace.restart_language_server(cx)
|
||||
});
|
||||
cx.add_bindings(vec![
|
||||
Binding::new("ctrl-alt-cmd-f", FollowNextCollaborator, None),
|
||||
Binding::new("cmd-s", Save, None),
|
||||
@@ -1423,8 +1419,6 @@ impl Workspace {
|
||||
None
|
||||
}
|
||||
|
||||
fn restart_language_server(&mut self, cx: &mut ViewContext<Self>) {}
|
||||
|
||||
fn render_connection_status(&self, cx: &mut RenderContext<Self>) -> Option<ElementBox> {
|
||||
let theme = &cx.global::<Settings>().theme;
|
||||
match &*self.client.status().borrow() {
|
||||
|
||||
Reference in New Issue
Block a user