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:
Kirill Bulatov 2025-06-26 18:41:42 +03:00 committed by GitHub
parent 8a1e795746
commit a0bd25f218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 2 deletions

View file

@ -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 {