Feature gate the LSP button (#33463)
Follow-up of https://github.com/zed-industries/zed/pull/32490 The tool still looks like designed by professional developers, and still may change its UX based on the internal feedback. Release Notes: - N/A
This commit is contained in:
parent
8a1e795746
commit
a0bd25f218
4 changed files with 13 additions and 2 deletions
|
@ -2484,11 +2484,11 @@ impl LocalLspStore {
|
|||
}
|
||||
}
|
||||
};
|
||||
let lsp_tool = self.weak.clone();
|
||||
let lsp_store = self.weak.clone();
|
||||
let server_name = server_node.name();
|
||||
let buffer_abs_path = abs_path.to_string_lossy().to_string();
|
||||
cx.defer(move |cx| {
|
||||
lsp_tool.update(cx, |_, cx| cx.emit(LspStoreEvent::LanguageServerUpdate {
|
||||
lsp_store.update(cx, |_, cx| cx.emit(LspStoreEvent::LanguageServerUpdate {
|
||||
language_server_id: server_id,
|
||||
name: server_name,
|
||||
message: proto::update_language_server::Variant::RegisteredForBuffer(proto::RegisteredForBuffer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue