Skip to content

Commit c177fcf

Browse files
committed
Add abort signal to inline-suggestion agent
1 parent 41bce8c commit c177fcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/component/code-editor-view.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ export default function CodeEditorView() {
303303
const result = await runAgentMethod(
304304
InlineSuggestionAgent.name,
305305
"predictLine",
306-
{ fileContentWithIndicator }
306+
{ fileContentWithIndicator },
307+
abortSignal
307308
);
308309

309310
const returns = result as InlineSuggestionAgentReturns;

0 commit comments

Comments
 (0)