🩹 add stopAtLines filter to /edit
This commit is contained in:
parent
e893049fcc
commit
722dde1238
1 changed files with 2 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue