Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: copilot connection (#5380)

Akshay Agrawal75f8d9ec332f
diff --git a/frontend/src/core/runtime/runtime.ts b/frontend/src/core/runtime/runtime.ts
index 564df8b9c9..5116187a0f 100644
--- a/frontend/src/core/runtime/runtime.ts
+++ b/frontend/src/core/runtime/runtime.ts
@@ -104,6 +104,12 @@ export class RuntimeManager {
* The URL of the copilot server.
*/
getLSPURL(lsp: "pylsp" | "copilot"): URL {
+ if (lsp === "copilot") {
+ // For copilot, don't include any query parameters
+ const url = this.formatWsURL(`/lsp/${lsp}`);
+ url.search = "";
+ return url;
+ }
return this.formatWsURL(`/lsp/${lsp}`);
}