Skip to content

Commit 65a3d20

Browse files
Select entire value when showing with an existing query (microsoft#182348)
1 parent cd95e93 commit 65a3d20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ class AskQuickQuestionAction extends Action2 {
148148
// If we were given a query (via executeCommand), then accept it
149149
if (query) {
150150
this._input.value = query;
151+
this._input.valueSelection = [0, this._input.value.length];
151152
this._currentQuery = query;
152153
this._currentSession.accept(query);
153154
} else if (this._currentQuery) {
154155
this._input.value = this._currentQuery;
156+
this._input.valueSelection = [0, this._input.value.length];
155157
}
156158
}
157159
}

0 commit comments

Comments
 (0)