@xterm/addon-search 0.16.0-beta.126 → 0.16.0-beta.128
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/lib/addon-search.js.map +1 -1
- package/lib/addon-search.mjs +8 -8
- package/lib/addon-search.mjs.map +2 -2
- package/package.json +3 -3
- package/src/SearchAddon.ts +4 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/addon-search",
|
|
3
|
-
"version": "0.16.0-beta.
|
|
3
|
+
"version": "0.16.0-beta.128",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "The xterm.js authors",
|
|
6
6
|
"url": "https://xtermjs.org/"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"start": "node ../../demo/start"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@xterm/xterm": "^5.6.0-beta.
|
|
25
|
+
"@xterm/xterm": "^5.6.0-beta.128"
|
|
26
26
|
},
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "f03dfbb3baa0549e4242ca35c3916d7a59dbbe7a"
|
|
28
28
|
}
|
package/src/SearchAddon.ts
CHANGED
|
@@ -4,31 +4,22 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
|
|
7
|
-
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions } from '@xterm/addon-search';
|
|
7
|
+
import type { SearchAddon as ISearchApi, ISearchOptions, ISearchDecorationOptions, ISearchAddonOptions, ISearchResultChangeEvent } from '@xterm/addon-search';
|
|
8
8
|
import { Emitter, Event } from 'vs/base/common/event';
|
|
9
9
|
import { Disposable, dispose, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
|
|
10
10
|
import { disposableTimeout } from 'vs/base/common/async';
|
|
11
11
|
import { SearchLineCache } from './SearchLineCache';
|
|
12
12
|
|
|
13
13
|
interface IInternalSearchOptions {
|
|
14
|
-
noScroll
|
|
14
|
+
noScroll: boolean;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
interface ISearchPosition {
|
|
18
18
|
startCol: number;
|
|
19
19
|
startRow: number;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
resultIndex: number;
|
|
24
|
-
resultCount: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ISearchAddonOptions {
|
|
28
|
-
highlightLimit: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ISearchResult {
|
|
22
|
+
interface ISearchResult {
|
|
32
23
|
term: string;
|
|
33
24
|
col: number;
|
|
34
25
|
row: number;
|