Add ISearchDecorationOptions to the d.ts

This commit is contained in:
Daniel Imms
2022-03-21 16:01:34 -07:00
parent 7a70db709c
commit 09d1a01126
@@ -32,6 +32,27 @@ declare module 'xterm-addon-search' {
* `findNext`, not `findPrevious`.
*/
incremental?: boolean;
/**
* When set, will highlight all instances of the word on search and show
* them in the overview ruler if it's enabled.
*/
decorations?: ISearchDecorationOptions;
}
/**
* Options for showing decorations when searching.
*/
interface ISearchDecorationOptions {
/**
* The color of a match.
*/
matchColor: string;
/**
* The color for the currently selected match.
*/
selectedColor: string;
}
/**