From 722dde1238dbbc36d194ec506cfbe5ed1182e2ed Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 10 Apr 2024 13:54:31 -0700 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A9=B9=20add=20stopAtLines=20filter?= =?UTF-8?q?=20to=20/edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/commands/slash/edit.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index ef303ff6a..bb90086b1 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -4,6 +4,7 @@ import { filterEnglishLinesAtEnd, filterEnglishLinesAtStart, fixCodeLlamaFirstLineIndentation, + stopAtLines, streamWithNewLines, } from "../../autocomplete/lineStream"; import { streamLines } from "../../diff/util"; @@ -479,6 +480,7 @@ const EditSlashCommand: SlashCommand = { lineStream = filterEnglishLinesAtStart(lineStream); lineStream = filterEnglishLinesAtEnd(filterCodeBlockLines(lineStream)); + lineStream = stopAtLines(lineStream); generator = streamWithNewLines( fixCodeLlamaFirstLineIndentation(lineStream), From 27a9aa89e38e3bab8816ee52683cd90cd81a723f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 10 Apr 2024 14:29:37 -0700 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20clean=20up=20vite=20build=20?= =?UTF-8?q?errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/src/hooks/useSetup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index 419e23b91..693522e06 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -74,7 +74,7 @@ function useSetup(dispatch: Dispatch) { }); useWebviewListener("submitMessage", async (data) => { - streamResponse(data.message); + streamResponse(data.message, { useCodebase: false }); }); useWebviewListener("addContextItem", async (data) => { From 0f7aed6f4845d04e9f76af7a06091ce8b2ed0b26 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 10 Apr 2024 14:37:53 -0700 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=91=B7=20make=20vscode=20external=20i?= =?UTF-8?q?n=20binary=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binary/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary/build.js b/binary/build.js index 01d6a2805..9769fcf0f 100644 --- a/binary/build.js +++ b/binary/build.js @@ -90,7 +90,7 @@ const targetToLanceDb = { entryPoints: ["src/index.ts"], bundle: true, outfile: esbuildOutputFile, - external: ["esbuild", ...DYNAMIC_IMPORTS, "./xhr-sync-worker.js"], + external: ["esbuild", ...DYNAMIC_IMPORTS, "./xhr-sync-worker.js", "vscode"], format: "cjs", platform: "node", sourcemap: true,