Skip to content

Commit ab16d41

Browse files
committed
Default to selecting all items in search results quick pick when no files are currently selected
- when context is empty, 'agentic search'/normal search (phrase etc.) results should be all selected in their quick picks by default └── apps └── editor └── src ├── commands │ ├── agentic-search-command │ │ └── agentic-search-command.ts │ └── search-files-commands │ └── utils │ └── prompt-for-provided-results.ts ├── features │ ├── agentic-search │ │ └── agentic-search.ts │ └── search-files │ ├── search-modes │ │ ├── perform-keywords-search-mode.ts │ │ └── perform-phrase-search-mode.ts │ └── utils │ ├── prompt-for-intelligent-search-results.ts │ ├── prompt-for-search-results.ts │ └── show-search-results-quick-pick.ts └── views └── prompt └── backend └── message-handlers └── handle-agentic-search.ts
1 parent 7c65a2d commit ab16d41

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/editor/src/features/search-files/utils/show-search-results-quick-pick.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export const show_search_results_quick_pick = async (params: {
106106
if (item.checked !== undefined) {
107107
return item.checked
108108
}
109+
if (currently_selected.length === 0) {
110+
return true
111+
}
109112
return currently_selected.includes(item.file_path)
110113
})
111114
quick_pick.canSelectMany = true

0 commit comments

Comments
 (0)