Skip to content

Commit 4a0bc46

Browse files
committed
Initialize file checked state from current checked files
- when invoking 'codeWebChat.internal.searchFilesWithResults' are all files' checkboxes checked regardless of their presence in context? We'd like them to be checked only if present in context, otherwise stay unchecked. └── apps └── editor └── src ├── commands │ ├── apply-response-command │ │ ├── apply-response-command.ts │ │ └── response-processor.ts │ └── search-files-commands.ts └── features └── search-files ├── index.ts ├── search-files.ts ├── search-modes │ ├── perform-intelligent-search-mode.ts │ ├── perform-keywords-search-mode.ts │ ├── perform-phrase-search-mode.ts │ └── perform-semantic-search-mode.ts └── utils ├── analyze-files.ts ├── check-matches-condition.ts ├── create-search-regex.ts ├── prompt-for-config.ts ├── prompt-for-intelligent-search-results.ts ├── prompt-for-keywords-match-mode.ts ├── prompt-for-keywords-target.ts ├── prompt-for-provided-results.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 └── search-files-by-semantic.ts
1 parent cf4d4a0 commit 4a0bc46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/editor/src/commands/apply-response-command/response-processor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const process_response = async (params: {
149149
)
150150
}
151151

152-
let is_checked = true
152+
let is_checked = current_checked_files.includes(absolute_path)
153153
if (params.args?.relevant_files) {
154154
const history_file = params.args.relevant_files.find(
155155
(f) =>

0 commit comments

Comments
 (0)