Repository navigation
Commit cf4d4a0
committed
Implement interactive search prompt for relevant files during response application
- add internal command to 'search files commands' that allows providing results set (array of file objects (path, checked state)) in param. Use it in 'apply response command', in place of the current flow that uses prompt view.
- when using 'codeWebChat.internal.searchFilesWithResults', don't send response to the panel (remove any leftover logic of not using panel for file search anymore)
- it's been reported that 'search in results' doesn't work when invoked with [Fragment]
└── apps
└── editor
└── src
├── commands
│ ├── apply-response-command
│ │ ├── apply-response-command.ts
│ │ ├── handlers
│ │ │ ├── diff-handler.ts
│ │ │ ├── fast-replace-handler.ts
│ │ │ ├── restore-preview-handler.ts
│ │ │ ├── search-replace-handler.ts
│ │ │ └── truncated-handler.ts
│ │ ├── response-processor.ts
│ │ ├── types
│ │ │ └── original-file-state.ts
│ │ └── utils
│ │ ├── file-checks.ts
│ │ ├── file-operations.ts
│ │ ├── preview
│ │ │ ├── diff-utils.ts
│ │ │ ├── file-preparer.ts
│ │ │ ├── index.ts
│ │ │ ├── preview.ts
│ │ │ ├── temp-file-manager.ts
│ │ │ ├── types.ts
│ │ │ ├── virtual-document-provider.ts
│ │ │ ├── vscode-ui.ts
│ │ │ └── workspace-listener.ts
│ │ ├── preview-handler.ts
│ │ └── state-manager.ts
│ ├── generate-commit-message-commands
│ │ └── generate-commit-message-commands.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.ts1 parent 3df6097 commit cf4d4a0
5 files changed
Lines changed: 280 additions & 84 deletions
File tree
- apps/editor/src
- commands
- apply-response-command
- features/search-files/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
| |||
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
122 | | - | |
123 | 117 | | |
124 | 118 | | |
125 | 119 | | |
| |||
180 | 174 | | |
181 | 175 | | |
182 | 176 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 177 | | |
196 | 178 | | |
197 | 179 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 180 | | |
225 | 181 | | |
226 | 182 | | |
227 | 183 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
246 | 193 | | |
247 | | - | |
| 194 | + | |
248 | 195 | | |
249 | 196 | | |
250 | 197 | | |
| |||
253 | 200 | | |
254 | 201 | | |
255 | 202 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 203 | + | |
| 204 | + | |
259 | 205 | | |
260 | 206 | | |
261 | 207 | | |
| |||
277 | 223 | | |
278 | 224 | | |
279 | 225 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 226 | | |
291 | 227 | | |
292 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
132 | 164 | | |
133 | 165 | | |
134 | 166 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments