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
+2 -2
View File
@@ -11,7 +11,7 @@ import type { ISearchResult } from './SearchEngine';
/**
* Interface for managing a highlight decoration.
*/
export interface IHighlight extends IDisposable {
interface IHighlight extends IDisposable {
decoration: IDecoration;
match: ISearchResult;
}
@@ -19,7 +19,7 @@ export interface IHighlight extends IDisposable {
/**
* Interface for managing multiple decorations for a single match.
*/
export interface IMultiHighlight extends IDisposable {
interface IMultiHighlight extends IDisposable {
decorations: IDecoration[];
match: ISearchResult;
}
+1 -1
View File
@@ -10,7 +10,7 @@ import type { SearchLineCache } from './SearchLineCache';
/**
* Represents the position to start a search from.
*/
export interface ISearchPosition {
interface ISearchPosition {
startCol: number;
startRow: number;
}
@@ -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;
}
/**
+6
View File
@@ -18,6 +18,9 @@
"common/*": [
"../../../src/common/*"
],
"browser/*": [
"../../../src/browser/*"
],
"vs/*": [
"../../../src/vs/*"
],
@@ -34,6 +37,9 @@
{
"path": "../../../src/common"
},
{
"path": "../../../src/browser"
},
{
"path": "../../../src/vs"
}