From c25d7a706b1988d4252622e84469801da3448d5f Mon Sep 17 00:00:00 2001 From: dxsullivan <193140725+dxsullivan@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:27:59 +0800 Subject: [PATCH] Fix: libs/remix-ui/search/src/lib/context/context.tsx --- libs/remix-ui/search/src/lib/context/context.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/search/src/lib/context/context.tsx b/libs/remix-ui/search/src/lib/context/context.tsx index 336955c744..e0d7933042 100644 --- a/libs/remix-ui/search/src/lib/context/context.tsx +++ b/libs/remix-ui/search/src/lib/context/context.tsx @@ -19,7 +19,7 @@ export interface SearchingStateInterface { setWholeWord: (value: boolean) => void setSearchResults: (value: SearchResult[]) => void findText: (path: string) => Promise - hightLightInPath: (result: SearchResult, line: SearchResultLineLine) => void + highlightInPath: (result: SearchResult, line: SearchResultLineLine) => void replaceText: (result: SearchResult, line: SearchResultLineLine) => Promise reloadFile: (file: string) => void toggleCaseSensitive: () => void @@ -194,7 +194,7 @@ export const SearchProvider = ({ children = [], reducer = SearchReducer, initial // do nothing } }, - hightLightInPath: async (result: SearchResult, line: SearchResultLineLine) => { + highlightInPath: async (result: SearchResult, line: SearchResultLineLine) => { await plugin.call('editor', 'discardHighlight') await plugin.call('editor', 'highlight', line.position, result.path) await plugin.call('editor', 'revealRange', line.position.start.line, line.position.start.column, line.position.end.line, line.position.end.column)