From 94ff4aa4b2b67aa1e6fd36b41a8101dc9b987196 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Tue, 4 Nov 2025 14:31:51 -0500 Subject: [PATCH] AI: Fix Github Copilot edit predictions failing to start (#41934) Closes #41457 #41806 #41801 Copilot started using `node:sqlite` module which is an experimental feature between node v22-v23 (stable in v24). The fix was passing in the experimental flag when Zed starts the copilot LSP. I tested this with v20.19.5 and v24.11.0. The fix got v20.19 working and didn't affect v24.11 which was already working. Release Notes: - AI: Fix Github Copilot edit predictions failing to start --- crates/copilot/src/copilot.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs index 41c8a17c2d251e23f7c2d6b27fbd2ff488c1c0e4..ed18a199bf2c08c8c046a8ad3e7f945b1340643e 100644 --- a/crates/copilot/src/copilot.rs +++ b/crates/copilot/src/copilot.rs @@ -489,7 +489,11 @@ impl Copilot { let node_path = node_runtime.binary_path().await?; ensure_node_version_for_copilot(&node_path).await?; - let arguments: Vec = vec![server_path.into(), "--stdio".into()]; + let arguments: Vec = vec![ + "--experimental-sqlite".into(), + server_path.into(), + "--stdio".into(), + ]; let binary = LanguageServerBinary { path: node_path, arguments,