diff --git a/extensions/vscode/src/activation/environmentSetup.ts b/extensions/vscode/src/activation/environmentSetup.ts index 031f99746..f6f1c37ad 100644 --- a/extensions/vscode/src/activation/environmentSetup.ts +++ b/extensions/vscode/src/activation/environmentSetup.ts @@ -241,7 +241,7 @@ function runExecutable(path: string) { const child = spawn(path, settings); // Either unref to avoid zombie process, or listen to events because you can - if (os.platform() === "win32") { + if (os.platform() === "win32" || true) { child.stdout.on("data", (data: any) => { console.log(`stdout: ${data}`); }); diff --git a/extensions/vscode/src/test-suite/environmentSetup.test.ts b/extensions/vscode/src/test-suite/environmentSetup.test.ts index f4345915e..3fb5929bf 100644 --- a/extensions/vscode/src/test-suite/environmentSetup.test.ts +++ b/extensions/vscode/src/test-suite/environmentSetup.test.ts @@ -6,8 +6,8 @@ import { startContinuePythonServer } from "../activation/environmentSetup"; import fetch from "node-fetch"; describe("Can start python server", () => { - test("Can start python server in under 80 seconds", async function () { - const allowedTime = 120_000; + test("Can start python server in under 80 seconds", async function (done) { + const allowedTime = 80_000; this.timeout(allowedTime + 10_000); console.log("Starting server in test..."); @@ -22,5 +22,7 @@ describe("Can start python server", () => { console.log("Server URL: ", serverUrl); const response = await fetch(`${serverUrl}/health`); assert.equal(response.status, 200); + + done(); }); }); diff --git a/server/continuedev/libs/llm/prompts/chat.py b/server/continuedev/libs/llm/prompts/chat.py index 6de8772f6..068c2faf9 100644 --- a/server/continuedev/libs/llm/prompts/chat.py +++ b/server/continuedev/libs/llm/prompts/chat.py @@ -155,7 +155,7 @@ Based on your instructions, here is the SQL query I have generated to answer the def sqlcoder_template_messages(schema: str = SQL_CODER_DEFAULT_SCHEMA): - if schema == "" or schema == "": + if schema in {"", ""}: schema = SQL_CODER_DEFAULT_SCHEMA def fn(msgs):