Skip to content

Commit d361212

Browse files
committed
add setTimeout
1 parent 7c3d763 commit d361212

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/server/public/index.html.gz

11 Bytes
Binary file not shown.

tools/server/webui/src/utils/llama-vscode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export const useVSCodeContext = (textarea: ChatTextareaApi) => {
3333
});
3434
}
3535
textarea.focus();
36-
textarea.refOnSubmit.current?.();
36+
setTimeout(() => {
37+
textarea.refOnSubmit.current?.();
38+
}, 10); // wait for setExtraContext to finish
3739
}
3840
};
3941

0 commit comments

Comments
 (0)