fix: Improve search result processing and error handling

- Refactor core plugin and Omnisearch result processing to use a shared helper function findLineDetails.
- Update error handling in core plugin and Omnisearch search functions to return a "No results found" string instead of throwing an error when no results are found.
This commit is contained in:
travertexg
2025-06-09 16:46:38 +00:00
parent 9984527e85
commit c2dfb48e22
7 changed files with 90 additions and 85 deletions

View File

@@ -235,6 +235,7 @@ export default {
matchBackendDescription: 'Choose the backend for match search method.',
ripgrep: 'ripgrep',
coreplugin: 'Core plugin',
omnisearch: 'Omnisearch',
ripgrepPath: 'ripgrep path',
ripgrepPathDescription: 'Path to the ripgrep binary. When using ripgrep regex search, this is required.',
},

View File

@@ -236,6 +236,7 @@ export default {
matchBackendDescription: '选择匹配搜索的后端。',
ripgrep: 'ripgrep',
coreplugin: '核心插件',
omnisearch: 'Omnisearch',
ripgrepPath: 'ripgrep 路径',
ripgrepPathDescription: 'ripgrep 二进制文件的路径。使用 ripgrep 正则搜索时需要此项。',
},