Skip to content

Commit

Permalink
Fix: libs/remix-ui/search/src/lib/context/context.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dxsullivan authored and Aniket-Engg committed Jan 16, 2025
1 parent c6a5af3 commit c25d7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/remix-ui/search/src/lib/context/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface SearchingStateInterface {
setWholeWord: (value: boolean) => void
setSearchResults: (value: SearchResult[]) => void
findText: (path: string) => Promise<SearchResultLine[]>
hightLightInPath: (result: SearchResult, line: SearchResultLineLine) => void
highlightInPath: (result: SearchResult, line: SearchResultLineLine) => void
replaceText: (result: SearchResult, line: SearchResultLineLine) => Promise<void>
reloadFile: (file: string) => void
toggleCaseSensitive: () => void
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c25d7a7

Please sign in to comment.