summaryrefslogtreecommitdiff
path: root/continuedev
diff options
context:
space:
mode:
Diffstat (limited to 'continuedev')
-rw-r--r--continuedev/src/continuedev/steps/core/core.py2
-rw-r--r--continuedev/src/continuedev/steps/main.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py
index 3a7c8876..cbf0fe5e 100644
--- a/continuedev/src/continuedev/steps/core/core.py
+++ b/continuedev/src/continuedev/steps/core/core.py
@@ -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:
diff --git a/continuedev/src/continuedev/steps/main.py b/continuedev/src/continuedev/steps/main.py
index 3cf78c40..5ccffbfe 100644
--- a/continuedev/src/continuedev/steps/main.py
+++ b/continuedev/src/continuedev/steps/main.py
@@ -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))