Skip to content

Commit 929c7a5

Browse files
Have focus out dismiss quick question and remember previous query for 30s (microsoft#182540)
1 parent b7be44e commit 929c7a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionQuickInputActions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class AskQuickQuestionAction extends Action2 {
7878

7979
this._input = quickInputService.createQuickPick();
8080
disposableStore.add(this._input);
81-
this._input.ignoreFocusOut = true;
8281
this._input.placeholder = localize('askabot', "Ask {0} a question...", providerInfo.displayName);
8382

8483
// Setup toggle that will be used to open the chat view
@@ -93,7 +92,6 @@ class AskQuickQuestionAction extends Action2 {
9392
disposableStore.add(openInChat);
9493
disposableStore.add(openInChat.onChange(async () => {
9594
await this._currentSession?.openInChat(this._input!.value);
96-
this._input!.hide();
9795
this._currentQuery = undefined;
9896
this._currentSession?.dispose();
9997
this._currentSession = undefined;
@@ -122,7 +120,7 @@ class AskQuickQuestionAction extends Action2 {
122120
this._currentQuery = undefined;
123121
this._currentSession?.dispose();
124122
this._currentSession = undefined;
125-
}, 1000 * 10); // 10 seconds
123+
}, 1000 * 30); // 30 seconds
126124
}));
127125
disposableStore.add(this._input.onDidAccept(async () => {
128126
await this._currentSession?.accept(this._input!.value);
@@ -141,6 +139,7 @@ class AskQuickQuestionAction extends Action2 {
141139
this._currentSession.createList(containerList, containerList.offsetWidth);
142140

143141
disposableStore.add(this._currentSession.onDidClickFollowup(async e => {
142+
this._input!.focusOnInput();
144143
this._input!.value = e.message;
145144
await this._currentSession?.accept(e.message);
146145
}));

0 commit comments

Comments
 (0)