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:
Daniel Imms
2025-09-18 13:26:43 -07:00
parent bf9ce3bfaf
commit a191370d54
4 changed files with 11 additions and 5 deletions
@@ -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;
}
/**