Skip to content

Commit ee82c5d

Browse files
committed
Make intelligent search mode conditional on workspace action
- when run on the overall workspace, hide 'intelligent' option └── apps └── editor ├── package.json ├── package.nls.bg.json ├── package.nls.cs.json ├── package.nls.de.json ├── package.nls.es.json ├── package.nls.fr.json ├── package.nls.hu.json ├── package.nls.it.json ├── package.nls.ja.json ├── package.nls.json ├── package.nls.ko.json ├── package.nls.pl.json ├── package.nls.pt-br.json ├── package.nls.ru.json ├── package.nls.tr.json ├── package.nls.zh-cn.json ├── package.nls.zh-tw.json └── src ├── commands │ ├── index.ts │ └── search-files-commands │ ├── index.ts │ ├── search-files-commands.ts │ └── utils │ ├── get-target-folder-path.ts │ └── prompt-for-provided-results.ts ├── extension.ts ├── features │ └── search-files │ ├── index.ts │ ├── search-files.ts │ ├── search-modes │ │ ├── perform-agent-search-mode │ │ │ ├── agents │ │ │ │ ├── antigravity.ts │ │ │ │ ├── claude.ts │ │ │ │ ├── codex.ts │ │ │ │ ├── cursor.ts │ │ │ │ ├── grok.ts │ │ │ │ ├── muse.ts │ │ │ │ └── opencode.ts │ │ │ ├── index.ts │ │ │ ├── perform-agent-search-mode.ts │ │ │ ├── types.ts │ │ │ └── utils.ts │ │ ├── perform-intelligent-search-mode.ts │ │ ├── perform-keywords-search-mode.ts │ │ └── perform-phrase-search-mode.ts │ └── utils │ ├── analyze-files.ts │ ├── check-matches-condition.ts │ ├── create-search-regex.ts │ ├── group-quick-pick-items.ts │ ├── handle-parent-folder-result.ts │ ├── map-files-to-quick-pick-items.ts │ ├── prompt-for-config.ts │ ├── prompt-for-intelligent-search-results.ts │ ├── prompt-for-keywords-match-mode.ts │ ├── prompt-for-keywords-target.ts │ ├── prompt-for-search-mode.ts │ ├── prompt-for-search-results.ts │ ├── prompt-for-search-term.ts │ ├── prompt-for-shrink-mode.ts │ ├── search-files-by-intelligent.ts │ ├── search-files-by-keywords.ts │ ├── search-files-by-phrase.ts │ └── show-search-results-quick-pick.ts └── i18n └── translations ├── commands │ ├── history.ts │ └── search-files.ts └── features ├── index.ts └── search-files.ts
1 parent 8d9e8e5 commit ee82c5d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎apps/editor/src/features/search-files/utils/prompt-for-search-mode.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ export const prompt_for_search_mode = async (
2020
label: t('feature.search-files.mode.keywords'),
2121
description: t('feature.search-files.mode.keywords-description'),
2222
mode: 'keywords'
23-
},
24-
{
23+
}
24+
]
25+
26+
if (!is_workspace_action) {
27+
items.push({
2528
label: t('feature.search-files.mode.intelligent'),
2629
description: t('feature.search-files.mode.intelligent-description'),
2730
mode: 'intelligent'
28-
}
29-
]
31+
})
32+
}
3033

3134
if (is_workspace_action) {
3235
items.push({

0 commit comments

Comments
 (0)