Skip to content

Commit 584e0bd

Browse files
committed
Return 'error' for non-cancellation failures and 'cancel' only for user cancellation
- when intelligent seach response fails, configurations list is never shown again ├── apps │ └── editor │ └── src │ ├── commands │ │ └── search-files-commands │ │ ├── index.ts │ │ ├── search-files-commands.ts │ │ └── utils │ │ ├── get-target-folder-path.ts │ │ └── prompt-for-provided-results.ts │ ├── context │ │ └── providers │ │ └── workspace │ │ └── workspace-provider.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 │ │ ├── group-quick-pick-items.ts │ │ ├── handle-parent-folder-result.ts │ │ ├── map-files-to-quick-pick-items.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 │ ├── i18n │ │ └── translations │ │ └── commands │ │ └── search-files.ts │ ├── services │ │ └── model-providers-manager.ts │ └── utils │ ├── apply-reasoning-effort.ts │ ├── build-user-content.ts │ ├── send-llm-message.ts │ └── show-configuration-quick-pick.ts └── packages └── shared └── src ├── constants │ └── dictionary.ts └── utils └── logger.ts
1 parent 8218a8d commit 584e0bd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/editor/src/features/search-files/utils/search-files-by-intelligent.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const search_files_by_intelligent = async (
8989
}
9090
return extracted_files.length == 0 ? 'error_no_files' : extracted_files
9191
}
92-
return 'cancel'
92+
return 'error'
9393
} catch (error) {
9494
if (!axios.isCancel(error)) {
9595
Logger.error({
@@ -98,7 +98,8 @@ export const search_files_by_intelligent = async (
9898
data: error
9999
})
100100
vscode.window.showErrorMessage(t('feature.search-files.error.finding'))
101+
return 'error'
101102
}
102-
return 'error'
103+
return 'cancel'
103104
}
104105
}

0 commit comments

Comments
 (0)