From 722dde1238dbbc36d194ec506cfbe5ed1182e2ed Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 10 Apr 2024 13:54:31 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20add=20stopAtLines=20filter=20to?= =?UTF-8?q?=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),