refactor: remove unnecessary interface exports
- Remove export from IHighlight and IMultiHighlight interfaces - Remove export from ISelectedDecoration interface - Remove export from ISearchPosition interface - Keep ISearchResult exported as it's used across multiple files - Make ISelectedDecoration extend IDisposable for consistency
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { ISearchResultChangeEvent } from '@xterm/addon-search';
|
||||
import type { IDisposable } from '@xterm/xterm';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import type { ISearchResult } from './SearchEngine';
|
||||
@@ -11,9 +12,8 @@ import type { ISearchResult } from './SearchEngine';
|
||||
/**
|
||||
* Interface for managing a currently selected decoration.
|
||||
*/
|
||||
export interface ISelectedDecoration {
|
||||
interface ISelectedDecoration extends IDisposable {
|
||||
match: ISearchResult;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user