From 09d1a01126d9f53a6c6411ab6f9737752339dd83 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Mon, 21 Mar 2022 16:01:13 -0700 Subject: [PATCH] Add ISearchDecorationOptions to the d.ts --- .../typings/xterm-addon-search.d.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/addons/xterm-addon-search/typings/xterm-addon-search.d.ts b/addons/xterm-addon-search/typings/xterm-addon-search.d.ts index 794d49c1e..e620a2540 100644 --- a/addons/xterm-addon-search/typings/xterm-addon-search.d.ts +++ b/addons/xterm-addon-search/typings/xterm-addon-search.d.ts @@ -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; } /**