Skip to content

Commit 9dc0530

Browse files
authored
refocus input widget when clicking into void (microsoft#185219)
1 parent d8e9b30 commit 9dc0530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ export class InlineChatZoneWidget extends ZoneWidget {
717717
this.create();
718718

719719

720+
this._disposables.add(addDisposableListener(this.domNode, 'click', e => this.widget.focus()));
721+
720722
// todo@jrieken listen ONLY when showing
721723
const updateCursorIsAboveContextKey = () => {
722724
if (!this.position || !this.editor.hasModel()) {

0 commit comments

Comments
 (0)