Skip to content

Commit d3d143d

Browse files
committed
Prevent QuickPick menus from closing on focus loss in select-workspace-file command
- rename translations of"apply responnse" 'apply chat response' to 'apply from clipboard'
1 parent 454fcb5 commit d3d143d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/editor/src/commands/select-workspace-file-command.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const select_workspace_file_command = (
3636
const selected = await new Promise<vscode.QuickPickItem | undefined>(
3737
(resolve) => {
3838
const quick_pick = vscode.window.createQuickPick()
39+
quick_pick.ignoreFocusOut = true
3940
quick_pick.items = items
4041
quick_pick.placeholder = t(
4142
'command.select-workspace-file.select-workspace'
@@ -78,6 +79,7 @@ export const select_workspace_file_command = (
7879
}
7980

8081
const quick_pick = vscode.window.createQuickPick<FileQuickPickItem>()
82+
quick_pick.ignoreFocusOut = true
8183
quick_pick.title = t('command.select-workspace-file.workspace-files')
8284
quick_pick.placeholder = t('command.select-workspace-file.select-file')
8385
quick_pick.matchOnDescription = true
@@ -144,6 +146,7 @@ export const select_workspace_file_command = (
144146
label: string
145147
full_path: string
146148
}>()
149+
folder_quick_pick.ignoreFocusOut = true
147150
folder_quick_pick.title = t(
148151
'command.select-workspace-file.parent-folders'
149152
)

0 commit comments

Comments
 (0)