Skip to content

Commit ab43a3b

Browse files
authored
Merge pull request #5405 from Tyriar/tyriar/b8d4_search_interface_refactor
Refactor search addon interfaces
2 parents b12a939 + 32e58c7 commit ab43a3b

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

addons/addon-search/src/SearchAddon.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,22 @@
44
*/
55

66
import type { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
7-
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions } from '@xterm/addon-search';
7+
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions, ISearchAddonOptions, ISearchResultChangeEvent } from '@xterm/addon-search';
88
import { Emitter, Event } from 'vs/base/common/event';
99
import { Disposable, dispose, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
1010
import { disposableTimeout } from 'vs/base/common/async';
1111
import { SearchLineCache } from './SearchLineCache';
1212

1313
interface IInternalSearchOptions {
14-
noScroll?: boolean;
14+
noScroll: boolean;
1515
}
1616

17-
export interface ISearchPosition {
17+
interface ISearchPosition {
1818
startCol: number;
1919
startRow: number;
2020
}
2121

22-
export interface ISearchResultChangeEvent {
23-
resultIndex: number;
24-
resultCount: number;
25-
}
26-
27-
export interface ISearchAddonOptions {
28-
highlightLimit: number;
29-
}
30-
31-
export interface ISearchResult {
22+
interface ISearchResult {
3223
term: string;
3324
col: number;
3425
row: number;

0 commit comments

Comments
 (0)