stream by character into diff editor
This commit is contained in:
parent
1f4878f895
commit
1e00942ede
2 changed files with 2 additions and 2 deletions
|
|
@ -453,7 +453,7 @@ class DefaultModelEditCodeStep(Step):
|
|||
lines.extend(map(lambda l: common_whitespace + l, chunk_lines))
|
||||
|
||||
if True:
|
||||
await sendDiffUpdate(lines, sdk)
|
||||
await sendDiffUpdate(lines + [common_whitespace + unfinished_line], sdk)
|
||||
|
||||
# Deal with newly accumulated lines
|
||||
for line in chunk_lines:
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ class EditHighlightedCodeStep(Step):
|
|||
if len(range_in_files) == 0:
|
||||
# Create a new file
|
||||
new_file_path = "new_file.txt"
|
||||
await sdk.add_file(new_file_path)
|
||||
await sdk.add_file(new_file_path, "")
|
||||
range_in_files = [RangeInFile.from_entire_file(new_file_path, "")]
|
||||
|
||||
await sdk.run_step(DefaultModelEditCodeStep(user_input=self.user_input, range_in_files=range_in_files))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue