@xterm/addon-search 0.17.0-beta.137 → 0.17.0-beta.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/addon-search",
|
|
3
|
-
"version": "0.17.0-beta.
|
|
3
|
+
"version": "0.17.0-beta.138",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "The xterm.js authors",
|
|
6
6
|
"url": "https://xtermjs.org/"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"prepublishOnly": "npm run package",
|
|
22
22
|
"start": "node ../../demo/start"
|
|
23
23
|
},
|
|
24
|
-
"commit": "
|
|
24
|
+
"commit": "dbe35428cb71aff3214dc0068cf695861ec77116",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@xterm/xterm": "^6.1.0-beta.
|
|
26
|
+
"@xterm/xterm": "^6.1.0-beta.138"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/SearchAddon.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { Terminal, IDisposable, ITerminalAddon } from '@xterm/xterm';
|
|
7
|
-
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchAddonOptions, ISearchResultChangeEvent } from '@xterm/addon-search';
|
|
7
|
+
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchAddonOptions, ISearchResultChangeEvent, ISearchDecorationOptions } from '@xterm/addon-search';
|
|
8
8
|
import { Emitter, Event } from 'vs/base/common/event';
|
|
9
9
|
import { Disposable, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
|
|
10
10
|
import { disposableTimeout } from 'vs/base/common/async';
|
|
@@ -222,7 +222,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon, ISearchAp
|
|
|
222
222
|
* @param result The result to select.
|
|
223
223
|
* @returns Whether a result was selected.
|
|
224
224
|
*/
|
|
225
|
-
private _selectResult(result: ISearchResult | undefined, options?:
|
|
225
|
+
private _selectResult(result: ISearchResult | undefined, options?: ISearchDecorationOptions, noScroll?: boolean): boolean {
|
|
226
226
|
if (!this._terminal || !this._decorationManager) {
|
|
227
227
|
return false;
|
|
228
228
|
}
|