Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix compile error

Joseph Lyons2d4b2e0844ee
diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs
index f1b547a182f..c7671cee7a1 100644
--- a/crates/copilot/src/copilot.rs
+++ b/crates/copilot/src/copilot.rs
@@ -49,7 +49,7 @@ pub fn init(client: &Client, node_runtime: Arc<NodeRuntime>, cx: &mut AppContext
cx.set_global(copilot.clone());
let telemetry_settings = cx.global::<Settings>().telemetry();
- let telemetry = client.telemetry();
+ let telemetry = client.telemetry().clone();
cx.subscribe(&copilot, move |_, event, _| match event {
Event::CompletionAccepted { uuid, file_type } => {