File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
core/src/main/kotlin/cc/unitmesh/devti/diff Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,6 @@ class DiffStreamHandler(
130
130
suggestion.append(char)
131
131
val code = CodeFence .parse(suggestion.toString())
132
132
var value: List <String > = code.text.lines()
133
- value = value.dropLast(1 )
134
-
135
133
if (value.isEmpty()) return @collect
136
134
137
135
val newLines = if (lastLineNo < value.size) {
@@ -170,7 +168,7 @@ class DiffStreamHandler(
170
168
val newLines = newContent.lines()
171
169
172
170
isRunning = true
173
- cc.unitmesh.devti.util. AutoDevCoroutineScope .scope(project).launch {
171
+ AutoDevCoroutineScope .scope(project).launch {
174
172
streamDiff(lines, flowOf(* newLines.toTypedArray())).collect {
175
173
ApplicationManager .getApplication().invokeLater {
176
174
WriteCommandAction .runWriteCommandAction(project) {
You can’t perform that action at this time.
0 commit comments