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:
@@ -195,11 +195,11 @@ impl Prettier {
|
||||
},
|
||||
Path::new("/"),
|
||||
None,
|
||||
cx,
|
||||
cx.clone(),
|
||||
)
|
||||
.context("prettier server creation")?;
|
||||
let server = executor
|
||||
.spawn(server.initialize(None))
|
||||
let server = cx
|
||||
.update(|cx| executor.spawn(server.initialize(None, cx)))?
|
||||
.await
|
||||
.context("prettier server initialization")?;
|
||||
Ok(Self::Real(RealPrettier {
|
||||
|
||||
Reference in New Issue
Block a user