Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit d24ab5c

Browse files
fishshirjmacarthy
authored andcommitted
hide back button when chat mounted (#361)
1 parent efab947 commit d24ab5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/webview/chat.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ export const Chat = (props: ChatProps): JSX.Element => {
367367
}
368368
}
369369

370+
useEffect(() => {
371+
global.vscode.postMessage({
372+
type: EVENT_NAME.twinnyHideBackButton,
373+
})
374+
}, [])
375+
370376
useEffect(() => {
371377
window.addEventListener("message", messageEventHandler)
372378
editorRef.current?.commands.focus()

0 commit comments

Comments
 (0)