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:
Kirill Bulatov 2024-02-01 18:39:28 +02:00 committed by GitHub
parent 47a1ff7df9
commit 944a1f8fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 50 additions and 16 deletions

View file

@ -445,7 +445,7 @@ impl Copilot {
)
.detach();
let server = server.initialize(Default::default()).await?;
let server = cx.update(|cx| server.initialize(None, cx))?.await?;
let status = server
.request::<request::CheckStatus>(request::CheckStatusParams {