diff --git a/Cargo.lock b/Cargo.lock index b3e5c38a46c74975ee71372ce29477963c92a41e..4c1e7de4350cf1c061e3b24d7d0babeb0ee00659 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1358,7 +1358,6 @@ dependencies = [ "smol", "theme", "util", - "workspace", ] [[package]] diff --git a/crates/copilot/Cargo.toml b/crates/copilot/Cargo.toml index bfafdbc0ca9522fe1553ee4ac38f4fc934007020..f4d75cc582d9d26957e697b744f5f43054b7d149 100644 --- a/crates/copilot/Cargo.toml +++ b/crates/copilot/Cargo.toml @@ -47,4 +47,3 @@ lsp = { path = "../lsp", features = ["test-support"] } rpc = { path = "../rpc", features = ["test-support"] } settings = { path = "../settings", features = ["test-support"] } util = { path = "../util", features = ["test-support"] } -workspace = { path = "../workspace", features = ["test-support"] } diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs index 182db084a1d2cc0452d545b102abafb7fc7d8861..b2da730c3fde265e8fc13b6d971d1fed4a651fad 100644 --- a/crates/copilot/src/copilot.rs +++ b/crates/copilot/src/copilot.rs @@ -378,13 +378,6 @@ impl Copilot { cx.clone(), )?; - let server = server.initialize(Default::default()).await?; - let status = server - .request::(request::CheckStatusParams { - local_checks_only: false, - }) - .await?; - server .on_notification::(|params, _cx| { match params.level { @@ -405,6 +398,14 @@ impl Copilot { ) .detach(); + let server = server.initialize(Default::default()).await?; + + let status = server + .request::(request::CheckStatusParams { + local_checks_only: false, + }) + .await?; + server .request::(request::SetEditorInfoParams { editor_info: request::EditorInfo { diff --git a/crates/copilot/src/request.rs b/crates/copilot/src/request.rs index 43b5109d027dd2bcc62d1e9a5cb48a5996e84fd7..0f9a478b910dd7fc5e87551d4cfe18408cc65451 100644 --- a/crates/copilot/src/request.rs +++ b/crates/copilot/src/request.rs @@ -143,8 +143,8 @@ pub enum LogMessage {} #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct LogMessageParams { - pub message: String, pub level: u8, + pub message: String, pub metadata_str: String, pub extra: Vec, }