Skip to content

Commit 6f6a10c

Browse files
committed
Set QuickPick windows to not lose focus
Enabling ignoreFocusOut allows the QuickPick window to not disappear when clicking on other windows or when other windows have focus. An example of this is when a compound is used for launch, we lose focus and then close the quick pick window as resolved. However, the user has not selected their process yet and we assume it is undefined. One catch is that now users have to hit esc to dismiss the process picker window instead of clicking away.
1 parent b77d89f commit 6f6a10c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/features/processPicker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class AttachPicker {
2727
return this.attachItemsProvider.getAttachItems()
2828
.then(processEntries => {
2929
let attachPickOptions: vscode.QuickPickOptions = {
30+
ignoreFocusOut: true,
3031
matchOnDescription: true,
3132
matchOnDetail: true,
3233
placeHolder: "Select the process to attach to"
@@ -223,6 +224,7 @@ export class RemoteAttachPicker {
223224
.then(async pipeCmd => RemoteAttachPicker.getRemoteOSAndProcesses(pipeCmd, pipeTransport.pipeCwd, platformInfo))
224225
.then(processes => {
225226
let attachPickOptions: vscode.QuickPickOptions = {
227+
ignoreFocusOut: true,
226228
matchOnDescription: true,
227229
matchOnDetail: true,
228230
placeHolder: "Select the process to attach to"

0 commit comments

Comments
 (0)