Skip to content

Commit c8961ec

Browse files
committed
Add agentic search command and modularize related state
- don't utilize featres/agentic-search folder, but `apps/editor/src/commands/agentic-search-command` - create a command 'agentic search', while placing shared logic in `apps/editor/src/features` - add 'agentic search' command to `README.md` - the locking mechanism of 'agentic search' should be set in `apps/editor/src/extension.ts` so both command and backend handler are blocked together - Replace the `{ in_progress: boolean }` agentic search flag with a small `AgenticSearchState` class with getter and setter. - move 'headless cli invocation' to utils, update translation keys ├── README.md └── 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 │ ├── agentic-search-command │ │ ├── agentic-search-command.ts │ │ └── index.ts │ ├── history-command │ │ ├── actions │ │ │ ├── clear-all-checkpoints.ts │ │ │ ├── create-temporary-checkpoint.ts │ │ │ ├── delete-checkpoint-with-undo.ts │ │ │ ├── restore-checkpoint.ts │ │ │ ├── sync-workspace-from-dir.ts │ │ │ ├── toggle-checkpoint-pin.ts │ │ │ └── update-checkpoint-description.ts │ │ ├── history-command.ts │ │ ├── index.ts │ │ └── utils │ │ └── sync-directory.ts │ └── index.ts ├── extension.ts ├── features │ ├── agentic-search │ │ ├── agentic-search-state.ts │ │ ├── agentic-search.ts │ │ ├── index.ts │ │ └── utils │ │ ├── build-agent-prompt.ts │ │ ├── index.ts │ │ └── prompt-for-search-term.ts │ └── checkpoints │ ├── actions │ │ ├── accept-checkpoint.ts │ │ ├── create-checkpoint.ts │ │ ├── delete-checkpoint.ts │ │ ├── get-checkpoints.ts │ │ └── index.ts │ ├── types │ │ ├── checkpoint.ts │ │ └── index.ts │ └── utils │ ├── copy-optimised-recursively.ts │ ├── get-checkpoint-path.ts │ ├── get-incremented-description.ts │ ├── git-utils.ts │ └── index.ts ├── i18n │ └── translations │ ├── commands │ │ ├── history-command.ts │ │ └── index.ts │ ├── features │ │ ├── checkpoints.ts │ │ └── index.ts │ └── utils │ ├── git-repository-utils.ts │ ├── headless-cli-invocation.ts │ ├── index.ts │ ├── show-missing-configuration-notification.ts │ └── show-parent-folder-quick-pick.ts ├── utils │ ├── apply-reasoning-effort.ts │ ├── build-user-content.ts │ ├── commit-message-details.ts │ ├── extract-paths-from-text │ │ ├── extract-paths-from-text.spec.ts │ │ ├── extract-paths-from-text.ts │ │ └── index.ts │ └── files-collector.ts └── views └── prompt └── backend ├── message-handlers │ ├── handle-agentic-search │ │ ├── handle-agentic-search.ts │ │ └── index.ts │ └── handle-invoke-headless-cli.ts └── prompt-view-provider.ts
1 parent dfef234 commit c8961ec

48 files changed

Lines changed: 160 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ Automatically place prompts in your favorite chatbot via the official browser ex
369369
- `Save File Selection` - Save the current context.
370370
- `Restore File Selection` - Restore a saved context.
371371
- `Select Workspace File...` - Select a file from the workspace.
372-
- `Search Files...` - Select files based on a search query.
373-
- `Search in Selected Files...` - Search within currently selected files.
372+
- `Search Files...` - Find files based on a search query.
373+
- `Search in Selected Files...` - Find within currently selected files.
374+
- `Agentic Search...` - Find task-relevant files using a headless CLI invocation.
374375
- `Select Clipboard Paths...` - Select files based on paths in your clipboard.
375376
- `Select Unstaged Files...` - Select files with unstaged changes.
376377
- `Select Files of Commit...` - Select files modified in a specific commit.

‎apps/editor/package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@
355355
"title": "%codeWebChat.searchSelectedFilesFromDirectory.title%",
356356
"category": "Code Web Chat"
357357
},
358+
{
359+
"command": "codeWebChat.agenticSearch",
360+
"title": "%codeWebChat.agenticSearch.title%",
361+
"category": "Code Web Chat"
362+
},
358363
{
359364
"command": "codeWebChat.selectReferencingFiles",
360365
"title": "%codeWebChat.selectReferencingFiles.title%",

‎apps/editor/package.nls.bg.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Търсене на файлове...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Търсене на файлове...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Търсене на файлове...",
49+
"codeWebChat.agenticSearch.title": "Агентно търсене...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Избери рефериращите файлове...",
5051
"codeWebChat.selectReferencingFiles.title": "Избери рефериращите файлове...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Избери импортираните файлове...",

‎apps/editor/package.nls.cs.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Hledat soubory...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Hledat soubory...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Hledat soubory...",
49+
"codeWebChat.agenticSearch.title": "Agentní vyhledávání...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Vybrat odkazující soubory...",
5051
"codeWebChat.selectReferencingFiles.title": "Vybrat odkazující soubory...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Vybrat importované soubory...",

‎apps/editor/package.nls.de.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Dateien suchen...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Dateien suchen...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Dateien suchen...",
49+
"codeWebChat.agenticSearch.title": "Agentensuche...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Referenzierende Dateien auswählen...",
5051
"codeWebChat.selectReferencingFiles.title": "Referenzierende Dateien auswählen...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Importierte Dateien auswählen...",

‎apps/editor/package.nls.es.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Buscar archivos...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Buscar archivos...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Buscar archivos...",
49+
"codeWebChat.agenticSearch.title": "Búsqueda agéntica...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Seleccionar archivos que referencian...",
5051
"codeWebChat.selectReferencingFiles.title": "Seleccionar archivos que referencian...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Seleccionar archivos importados...",

‎apps/editor/package.nls.fr.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Rechercher des fichiers...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Rechercher des fichiers...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Rechercher des fichiers...",
49+
"codeWebChat.agenticSearch.title": "Recherche agentique...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Sélectionner les fichiers de référence...",
5051
"codeWebChat.selectReferencingFiles.title": "Sélectionner les fichiers de référence...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Sélectionner les fichiers importés...",

‎apps/editor/package.nls.hu.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Fájlok keresése...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Fájlok keresése...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Fájlok keresése...",
49+
"codeWebChat.agenticSearch.title": "Ágensi keresés...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Hivatkozó fájlok kiválasztása...",
5051
"codeWebChat.selectReferencingFiles.title": "Hivatkozó fájlok kiválasztása...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Importált fájlok kiválasztása...",

‎apps/editor/package.nls.it.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "Cerca file...",
4747
"codeWebChat.searchFilesFromDirectory.title": "Cerca file...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "Cerca file...",
49+
"codeWebChat.agenticSearch.title": "Ricerca agentica...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "Seleziona i file di riferimento...",
5051
"codeWebChat.selectReferencingFiles.title": "Seleziona i file di riferimento...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "Seleziona i file importati...",

‎apps/editor/package.nls.ja.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"codeWebChat.searchSelectedFiles.title": "ファイルを検索...",
4747
"codeWebChat.searchFilesFromDirectory.title": "ファイルを検索...",
4848
"codeWebChat.searchSelectedFilesFromDirectory.title": "ファイルを検索...",
49+
"codeWebChat.agenticSearch.title": "エージェント検索...",
4950
"codeWebChat.selectReferencingFilesForSelected.title": "参照しているファイルを選択...",
5051
"codeWebChat.selectReferencingFiles.title": "参照しているファイルを選択...",
5152
"codeWebChat.selectImportedFilesForSelected.title": "インポートされたファイルを選択...",

0 commit comments

Comments
 (0)