Repository navigation
Commit 3a48120
committed
Replace unsafe any-typed catch variables with unknown and normalize error message extraction across the editor extension
- instead of assigning 'any' to errors, use such approach [Pasted text]
└── apps
├── browser
│ ├── create-zip-archives.ts
│ └── src
│ ├── background
│ │ └── clear-chat-init-data.ts
│ ├── content-scripts
│ │ └── send-prompt-content-script
│ │ └── utils
│ │ └── add-apply-response-button.ts
│ └── views
│ └── popup
│ └── use-firefox-containers.ts
├── editor
│ └── src
│ ├── commands
│ │ ├── apply-response-command
│ │ │ ├── response-processor
│ │ │ │ └── handlers
│ │ │ │ ├── diff-handler.ts
│ │ │ │ ├── fast-replace-handler.ts
│ │ │ │ ├── restore-preview-handler.ts
│ │ │ │ ├── search-replace-handler.ts
│ │ │ │ └── truncated-handler.ts
│ │ │ └── utils
│ │ │ ├── file-operations
│ │ │ │ ├── create-file-if-needed.ts
│ │ │ │ ├── handle-deleted-file-item.ts
│ │ │ │ ├── relocate-file.ts
│ │ │ │ ├── remove-directory-if-empty.ts
│ │ │ │ └── undo-files.ts
│ │ │ ├── preview
│ │ │ │ ├── build-history-files.ts
│ │ │ │ ├── file-preparer.ts
│ │ │ │ └── vscode-ui.ts
│ │ │ ├── preview-handler.ts
│ │ │ └── tab-group-manager.ts
│ │ ├── copy-markdown-command.ts
│ │ ├── copy-merge-commit-details-command.ts
│ │ ├── delete-command.ts
│ │ ├── generate-commit-message-commands
│ │ │ ├── actions
│ │ │ │ └── run-generate-action.ts
│ │ │ └── utils
│ │ │ └── generate-commit-message-with-api.ts
│ │ ├── history-command
│ │ │ └── actions
│ │ │ ├── clear-all-checkpoints.ts
│ │ │ ├── delete-checkpoint-with-undo.ts
│ │ │ └── restore-checkpoint.ts
│ │ ├── new-file-command.ts
│ │ ├── new-folder-command.ts
│ │ ├── rename-command.ts
│ │ ├── restore-file-selection-command
│ │ │ └── actions
│ │ │ ├── restore-from-json-file.ts
│ │ │ └── restore-from-workspace-state.ts
│ │ ├── search-files-commands
│ │ │ └── utils
│ │ │ └── get-target-folder-path.ts
│ │ ├── select-clipboard-paths-command.ts
│ │ ├── select-definition-file-command.ts
│ │ ├── select-files-of-commit-command.ts
│ │ ├── select-imported-files-commands
│ │ │ └── utils
│ │ │ └── prompt-for-imported-files.ts
│ │ ├── select-modified-files-command.ts
│ │ ├── select-referencing-files-commands
│ │ │ ├── select-referencing-files-commands.ts
│ │ │ └── utils
│ │ │ └── prompt-for-referencing-files.ts
│ │ ├── select-workspace-file-command.ts
│ │ └── set-ranges-command.ts
│ ├── context
│ │ ├── context-initialization.ts
│ │ └── providers
│ │ ├── open-editors
│ │ │ └── open-editors-provider.ts
│ │ └── workspace
│ │ ├── modules
│ │ │ └── token-calculator.ts
│ │ └── workspace-provider.ts
│ ├── features
│ │ ├── checkpoints
│ │ │ ├── actions
│ │ │ │ ├── create-checkpoint.ts
│ │ │ │ ├── delete-checkpoint.ts
│ │ │ │ └── get-checkpoints.ts
│ │ │ └── utils
│ │ │ └── git-utils.ts
│ │ ├── context-restoration
│ │ │ └── utils
│ │ │ ├── context-file-utils.ts
│ │ │ ├── global-storage-utils.ts
│ │ │ ├── path-utils.ts
│ │ │ ├── resolve-glob-patterns.ts
│ │ │ └── source-selector.ts
│ │ └── search-files
│ │ ├── search-files.ts
│ │ └── utils
│ │ ├── search-files-by-intelligent.ts
│ │ ├── search-files-by-keywords.ts
│ │ ├── search-files-by-phrase.ts
│ │ └── show-search-results-quick-pick.ts
│ ├── migrations
│ │ ├── migrate-clear-all-checkpoints.ts
│ │ ├── migrate-commit-message-details-filename.ts
│ │ ├── migrate-configurations-to-api-configurations.ts
│ │ ├── migrate-edit-context-to-edit-files-system-instructions.ts
│ │ ├── migrate-model-providers-to-providers.ts
│ │ ├── migrate-prompt-templates-suffixes.ts
│ │ ├── migrate-prompt-templates-to-templates.ts
│ │ └── migrate-settings-keys-to-chatbots-and-models.ts
│ ├── services
│ │ ├── git-discard-file-watcher.ts
│ │ ├── model-fetcher.ts
│ │ ├── prompt-view-api-calls-manager.ts
│ │ ├── providers-manager.ts
│ │ └── websocket-manager.ts
│ ├── utils
│ │ ├── changes-integration
│ │ │ └── diff-processor
│ │ │ └── test-cases
│ │ │ ├── generic-3
│ │ │ │ ├── diff.txt
│ │ │ │ ├── expected.txt
│ │ │ │ └── original.txt
│ │ │ └── generic-4
│ │ │ ├── diff.txt
│ │ │ ├── expected.txt
│ │ │ └── original.txt
│ │ ├── commit-message-details.ts
│ │ ├── files-collector.ts
│ │ ├── send-llm-message.ts
│ │ └── tasks-utils.ts
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ ├── handle-go-to-file.ts
│ │ │ │ ├── handle-hash-sign-quick-pick
│ │ │ │ │ └── symbols
│ │ │ │ │ ├── changes-symbol.ts
│ │ │ │ │ ├── commit-symbol.ts
│ │ │ │ │ ├── saved-context-symbol.ts
│ │ │ │ │ └── skill-symbol.ts
│ │ │ │ ├── handle-make-api-call.ts
│ │ │ │ ├── handle-open-file-and-select.ts
│ │ │ │ ├── handle-open-prompt-image.ts
│ │ │ │ ├── handle-open-prompt-pasted-text.ts
│ │ │ │ ├── handle-paste-url.ts
│ │ │ │ ├── handle-patch-repair.ts
│ │ │ │ ├── handle-pick-api-reasoning-effort.ts
│ │ │ │ ├── handle-preview-changes-symbol.ts
│ │ │ │ ├── handle-preview-commit-symbol.ts
│ │ │ │ ├── handle-preview-generated-code.ts
│ │ │ │ ├── handle-preview-skill-symbol.ts
│ │ │ │ ├── handle-save-prompt-image.ts
│ │ │ │ ├── handle-save-prompt-pasted-text.ts
│ │ │ │ ├── handle-show-diff.ts
│ │ │ │ ├── handle-undo.ts
│ │ │ │ ├── handle-voice-input.ts
│ │ │ │ └── utils
│ │ │ │ └── patch-repair-utils.ts
│ │ │ ├── prompt-view-provider.ts
│ │ │ └── utils
│ │ │ ├── preview-text-in-temp-file.ts
│ │ │ ├── symbols
│ │ │ │ ├── git
│ │ │ │ │ └── replace-git-symbols.ts
│ │ │ │ ├── image
│ │ │ │ │ └── replace-image-symbol.ts
│ │ │ │ ├── pasted-text
│ │ │ │ │ └── replace-pasted-text-symbol.ts
│ │ │ │ ├── saved-context
│ │ │ │ │ └── replace-saved-context-symbol.ts
│ │ │ │ └── website
│ │ │ │ └── replace-website-symbol.ts
│ │ │ └── website-fetcher.ts
│ │ └── frontend
│ │ └── hooks
│ │ └── use-recent-donations.ts
│ ├── settings
│ │ └── backend
│ │ └── message-handlers
│ │ └── handle-pick-api-reasoning-effort.ts
│ └── shared
│ └── actions
│ ├── api
│ │ ├── create
│ │ │ └── interactions
│ │ │ ├── initial-select-model.ts
│ │ │ └── verify-reasoning-effort.ts
│ │ └── update
│ │ └── interactions
│ │ └── edit-model-for-api-config.ts
│ └── web
│ ├── delete.ts
│ └── pick-model.ts
└── old-website
└── copy-readme.js1 parent 56eabd6 commit 3a48120
29 files changed
Lines changed: 127 additions & 93 deletions
File tree
- apps/editor/src
- commands
- apply-response-command
- response-processor/handlers
- utils/file-operations
- generate-commit-message-commands/actions
- history-command/actions
- restore-file-selection-command/actions
- features
- checkpoints
- actions
- utils
- context-restoration/utils
- views
- prompt/backend
- message-handlers
- utils
- utils
- settings/backend/message-handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
379 | 382 | | |
380 | 383 | | |
381 | 384 | | |
| |||
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
452 | | - | |
| 455 | + | |
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
456 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
457 | 463 | | |
458 | 464 | | |
459 | 465 | | |
| |||
669 | 675 | | |
670 | 676 | | |
671 | 677 | | |
672 | | - | |
| 678 | + | |
673 | 679 | | |
674 | 680 | | |
675 | 681 | | |
676 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
677 | 686 | | |
678 | 687 | | |
679 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | | - | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
| |||
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
208 | | - | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
212 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 | | |
214 | 223 | | |
215 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
494 | 496 | | |
495 | 497 | | |
496 | | - | |
| 498 | + | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
500 | 502 | | |
501 | | - | |
| 503 | + | |
502 | 504 | | |
503 | 505 | | |
504 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
0 commit comments