Merge pull request #5405 from Tyriar/tyriar/b8d4_search_interface_refactor
Refactor search addon interfaces
This commit is contained in:
@@ -4,31 +4,22 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
|
import type { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
|
||||||
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions } from '@xterm/addon-search';
|
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions, ISearchAddonOptions, ISearchResultChangeEvent } from '@xterm/addon-search';
|
||||||
import { Emitter, Event } from 'vs/base/common/event';
|
import { Emitter, Event } from 'vs/base/common/event';
|
||||||
import { Disposable, dispose, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
|
import { Disposable, dispose, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
|
||||||
import { disposableTimeout } from 'vs/base/common/async';
|
import { disposableTimeout } from 'vs/base/common/async';
|
||||||
import { SearchLineCache } from './SearchLineCache';
|
import { SearchLineCache } from './SearchLineCache';
|
||||||
|
|
||||||
interface IInternalSearchOptions {
|
interface IInternalSearchOptions {
|
||||||
noScroll?: boolean;
|
noScroll: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISearchPosition {
|
interface ISearchPosition {
|
||||||
startCol: number;
|
startCol: number;
|
||||||
startRow: number;
|
startRow: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISearchResultChangeEvent {
|
interface ISearchResult {
|
||||||
resultIndex: number;
|
|
||||||
resultCount: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ISearchAddonOptions {
|
|
||||||
highlightLimit: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ISearchResult {
|
|
||||||
term: string;
|
term: string;
|
||||||
col: number;
|
col: number;
|
||||||
row: number;
|
row: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user