Skip to content

Commit d95f772

Browse files
committed
Focus chat input when clearing session
1 parent 57c5e37 commit d95f772

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatClearActions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export function registerClearActions() {
8181

8282
announceChatCleared(accessor);
8383
widget.clear();
84+
widget.focusInput();
8485
}
8586
});
8687
}
@@ -110,6 +111,7 @@ export function getClearAction(viewId: string, providerId: string) {
110111
async runInView(accessor: ServicesAccessor, view: ChatViewPane) {
111112
announceChatCleared(accessor);
112113
await view.clear();
114+
view.widget.focusInput();
113115
}
114116
};
115117
}

0 commit comments

Comments
 (0)