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:
@@ -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.',
|
||||
},
|
||||
|
||||
@@ -236,6 +236,7 @@ export default {
|
||||
matchBackendDescription: '选择匹配搜索的后端。',
|
||||
ripgrep: 'ripgrep',
|
||||
coreplugin: '核心插件',
|
||||
omnisearch: 'Omnisearch',
|
||||
ripgrepPath: 'ripgrep 路径',
|
||||
ripgrepPathDescription: 'ripgrep 二进制文件的路径。使用 ripgrep 正则搜索时需要此项。',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user