Skip to content

Commit ad38838

Browse files
committed
Add search files for context command with directory support and improved UI flow
1 parent 4d5d6a9 commit ad38838

5 files changed

Lines changed: 396 additions & 386 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"category": "Code Web Chat",
332332
"icon": "$(search)"
333333
},
334+
{
335+
"command": "codeWebChat.searchFilesForContextFromDirectory",
336+
"title": "Search Files for Context...",
337+
"category": "Code Web Chat"
338+
},
334339
{
335340
"command": "codeWebChat.checkReferencingFilesForContext",
336341
"title": "Check Referencing Files for Context",
@@ -519,6 +524,10 @@
519524
"command": "codeWebChat.copyCommitMessagePrompt",
520525
"when": "false"
521526
},
527+
{
528+
"command": "codeWebChat.searchFilesForContextFromDirectory",
529+
"when": "false"
530+
},
522531
{
523532
"command": "codeWebChat.checkDefinitionFileForContext",
524533
"when": "false"
@@ -739,7 +748,7 @@
739748
"group": "1_modification@3"
740749
},
741750
{
742-
"command": "codeWebChat.searchFilesForContext",
751+
"command": "codeWebChat.searchFilesForContextFromDirectory",
743752
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == directory || viewItem == workspaceRoot || viewItem == contextDirectory || viewItem == contextWorkspaceRoot)",
744753
"group": "1_modification@3.5"
745754
},

‎apps/editor/src/commands/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export * from './apply-context-command'
1919
export * from './set-ranges-command'
2020
export * from './check-parent-folder-command'
2121
export * from './uncheck-parent-folder-command'
22-
export * from './search-files-for-context'
22+
export * from './search-files-for-context-command'
2323
export * from './check-referencing-files-for-context-command'
2424
export * from './check-definition-file-for-context-command'
2525
export * from './rate-command'

0 commit comments

Comments
 (0)