Send lsp_types::InitializeParams with Zed version (#7216)
Based on the great work in https://github.com/zed-industries/zed/pull/7130 , now sends this data ``` [crates/lsp/src/lsp.rs:588] ClientInfo { name: name.to_string(), version: Some(version.to_string()) } = ClientInfo { name: "Zed Dev", version: Some( "0.122.0", ), } ``` with every LSP server initialization. Release Notes: - Added Zed name and version to LSP InitializeParams requests
This commit is contained in:
@@ -3130,7 +3130,9 @@ impl Project {
|
||||
(None, override_options) => initialization_options = override_options,
|
||||
_ => {}
|
||||
}
|
||||
let language_server = language_server.initialize(initialization_options).await?;
|
||||
let language_server = cx
|
||||
.update(|cx| language_server.initialize(initialization_options, cx))?
|
||||
.await?;
|
||||
|
||||
language_server
|
||||
.notify::<lsp::notification::DidChangeConfiguration>(
|
||||
|
||||
@@ -4380,6 +4380,7 @@ fn init_test(cx: &mut gpui::TestAppContext) {
|
||||
cx.update(|cx| {
|
||||
let settings_store = SettingsStore::test(cx);
|
||||
cx.set_global(settings_store);
|
||||
release_channel::init("0.0.0", cx);
|
||||
language::init(cx);
|
||||
Project::init_settings(cx);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user