Repository navigation
Commit 0058f76
committed
Handle API search cancellation by returning to configuration quick pick instead of exiting
- cancelling intelligent search ongoing request should re-open quick pick appriopriately
- Type '"cancel" | string[]' is not assignable to type 'string[]'. Type 'string' is not assignable to type 'string[]'.ts(2322) prompt-for-intelligent-search-results.ts(9, 3): The expected type comes from property 'extracted_files' which is declared here on type '{ files: string[]; extracted_files: string[]; analysis: FileAnalysisResult; workspace_provider: WorkspaceProvider; restored_selected_paths?: string[] | undefined; restored_unmatched_paths?: string[] | undefined; is_search_in_selected?: boolean | undefined; is_sub_search?: boolean | undefined; }' ⚠ Error (TS2322) | | | Type is not assignable to type . Type is not assignable to type . (property) extracted_files: string[]
└── apps
└── editor
└── src
├── commands
│ └── generate-commit-message-commands
│ ├── actions
│ │ ├── get-prompt-data.ts
│ │ └── run-generate-action.ts
│ ├── generate-commit-message-commands.ts
│ ├── index.ts
│ └── utils
│ ├── build-commit-message-prompt.ts
│ ├── generate-commit-message-with-api.ts
│ ├── get-commit-message-config.ts
│ └── strip-wrapping-quotes.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
│ └── 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-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
│ ├── show-search-results-quick-pick.ts
│ └── shrink-file
│ ├── index.ts
│ ├── languages
│ │ ├── c-style.ts
│ │ ├── css.ts
│ │ ├── html.ts
│ │ ├── jsx.ts
│ │ ├── python.ts
│ │ ├── ruby.ts
│ │ └── sql.ts
│ └── shrink-file.ts
├── i18n
│ └── translations
│ └── commands
│ └── search-files-command.ts
└── utils
├── git-repository-utils.ts
└── show-configurations-quick-pick.ts1 parent 65e7d38 commit 0058f76
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | | - | |
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | 512 | | |
515 | 513 | | |
516 | | - | |
| 514 | + | |
517 | 515 | | |
518 | 516 | | |
519 | 517 | | |
| |||
0 commit comments