You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/auto_completion_node_widget.dart
+3-6
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ class _AutoCompletionBlockComponentState
229
229
}
230
230
},
231
231
onProcess: (text) async {
232
-
await textRobot.autoInsertText(
232
+
await textRobot.autoInsertTextSync(
233
233
text,
234
234
separator:r'\n\n',
235
235
inputType:TextRobotInputType.sentence,
@@ -269,10 +269,7 @@ class _AutoCompletionBlockComponentState
269
269
start,
270
270
end.last - start.last +1,
271
271
);
272
-
await editorState.apply(
273
-
transaction,
274
-
options:constApplyOptions(inMemoryUpdate:true),
275
-
);
272
+
await editorState.apply(transaction);
276
273
await_makeSurePreviousNodeIsEmptyParagraphNode();
277
274
}
278
275
}
@@ -321,7 +318,7 @@ class _AutoCompletionBlockComponentState
0 commit comments