@theia/search-in-workspace 1.45.0 → 1.46.0-next.72

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.
Files changed (58) hide show
  1. package/README.md +40 -40
  2. package/lib/browser/components/search-in-workspace-input.d.ts +39 -39
  3. package/lib/browser/components/search-in-workspace-input.js +123 -123
  4. package/lib/browser/components/search-in-workspace-textarea.d.ts +39 -39
  5. package/lib/browser/components/search-in-workspace-textarea.js +130 -130
  6. package/lib/browser/search-in-workspace-context-key-service.d.ts +23 -23
  7. package/lib/browser/search-in-workspace-context-key-service.js +90 -90
  8. package/lib/browser/search-in-workspace-factory.d.ts +10 -10
  9. package/lib/browser/search-in-workspace-factory.js +68 -68
  10. package/lib/browser/search-in-workspace-frontend-contribution.d.ts +57 -55
  11. package/lib/browser/search-in-workspace-frontend-contribution.d.ts.map +1 -1
  12. package/lib/browser/search-in-workspace-frontend-contribution.js +516 -482
  13. package/lib/browser/search-in-workspace-frontend-contribution.js.map +1 -1
  14. package/lib/browser/search-in-workspace-frontend-module.d.ts +6 -6
  15. package/lib/browser/search-in-workspace-frontend-module.js +71 -71
  16. package/lib/browser/search-in-workspace-label-provider.d.ts +9 -9
  17. package/lib/browser/search-in-workspace-label-provider.js +57 -57
  18. package/lib/browser/search-in-workspace-preferences.d.ts +17 -17
  19. package/lib/browser/search-in-workspace-preferences.js +87 -87
  20. package/lib/browser/search-in-workspace-result-tree-widget.d.ts +259 -255
  21. package/lib/browser/search-in-workspace-result-tree-widget.d.ts.map +1 -1
  22. package/lib/browser/search-in-workspace-result-tree-widget.js +1172 -1099
  23. package/lib/browser/search-in-workspace-result-tree-widget.js.map +1 -1
  24. package/lib/browser/search-in-workspace-service.d.ts +35 -35
  25. package/lib/browser/search-in-workspace-service.js +158 -158
  26. package/lib/browser/search-in-workspace-widget.d.ts +121 -121
  27. package/lib/browser/search-in-workspace-widget.js +629 -629
  28. package/lib/browser/search-layout-migrations.d.ts +5 -5
  29. package/lib/browser/search-layout-migrations.js +64 -64
  30. package/lib/common/search-in-workspace-interface.d.ts +116 -116
  31. package/lib/common/search-in-workspace-interface.js +35 -35
  32. package/lib/node/ripgrep-search-in-workspace-server.d.ts +94 -94
  33. package/lib/node/ripgrep-search-in-workspace-server.js +430 -430
  34. package/lib/node/ripgrep-search-in-workspace-server.js.map +1 -1
  35. package/lib/node/ripgrep-search-in-workspace-server.slow-spec.d.ts +1 -1
  36. package/lib/node/ripgrep-search-in-workspace-server.slow-spec.js +899 -899
  37. package/lib/node/ripgrep-search-in-workspace-server.slow-spec.js.map +1 -1
  38. package/lib/node/search-in-workspace-backend-module.d.ts +3 -3
  39. package/lib/node/search-in-workspace-backend-module.js +32 -32
  40. package/package.json +9 -9
  41. package/src/browser/components/search-in-workspace-input.tsx +139 -139
  42. package/src/browser/components/search-in-workspace-textarea.tsx +153 -153
  43. package/src/browser/search-in-workspace-context-key-service.ts +93 -93
  44. package/src/browser/search-in-workspace-factory.ts +59 -59
  45. package/src/browser/search-in-workspace-frontend-contribution.ts +510 -474
  46. package/src/browser/search-in-workspace-frontend-module.ts +83 -83
  47. package/src/browser/search-in-workspace-label-provider.ts +48 -48
  48. package/src/browser/search-in-workspace-preferences.ts +96 -96
  49. package/src/browser/search-in-workspace-result-tree-widget.tsx +1318 -1245
  50. package/src/browser/search-in-workspace-service.ts +152 -152
  51. package/src/browser/search-in-workspace-widget.tsx +727 -727
  52. package/src/browser/search-layout-migrations.ts +53 -53
  53. package/src/browser/styles/index.css +400 -400
  54. package/src/browser/styles/search.svg +6 -6
  55. package/src/common/search-in-workspace-interface.ts +153 -153
  56. package/src/node/ripgrep-search-in-workspace-server.slow-spec.ts +1073 -1073
  57. package/src/node/ripgrep-search-in-workspace-server.ts +490 -490
  58. package/src/node/search-in-workspace-backend-module.ts +33 -33
@@ -1,256 +1,260 @@
1
- /// <reference types="lodash" />
2
- /// <reference types="react" />
3
- import { TreeWidget, CompositeTreeNode, ContextMenuRenderer, ExpandableTreeNode, SelectableTreeNode, TreeModel, TreeNode, NodeProps, TreeProps, TreeExpansionService, ApplicationShell } from '@theia/core/lib/browser';
4
- import { CancellationTokenSource, Emitter, Event, ProgressService } from '@theia/core';
5
- import { EditorManager, EditorDecoration, EditorWidget } from '@theia/editor/lib/browser';
6
- import { WorkspaceService } from '@theia/workspace/lib/browser';
7
- import { FileResourceResolver, FileSystemPreferences } from '@theia/filesystem/lib/browser';
8
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
9
- import { SearchInWorkspaceResult, SearchInWorkspaceOptions, SearchMatch } from '../common/search-in-workspace-interface';
10
- import { SearchInWorkspaceService } from './search-in-workspace-service';
11
- import URI from '@theia/core/lib/common/uri';
12
- import * as React from '@theia/core/shared/react';
13
- import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
14
- import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
15
- import { DisposableCollection } from '@theia/core/lib/common/disposable';
16
- export interface SearchInWorkspaceRoot extends CompositeTreeNode {
17
- children: SearchInWorkspaceRootFolderNode[];
18
- }
19
- export declare namespace SearchInWorkspaceRoot {
20
- function is(node: unknown): node is SearchInWorkspaceRoot;
21
- }
22
- export interface SearchInWorkspaceRootFolderNode extends ExpandableTreeNode, SelectableTreeNode {
23
- name?: undefined;
24
- icon?: undefined;
25
- children: SearchInWorkspaceFileNode[];
26
- parent: SearchInWorkspaceRoot;
27
- path: string;
28
- folderUri: string;
29
- uri: URI;
30
- }
31
- export declare namespace SearchInWorkspaceRootFolderNode {
32
- function is(node: unknown): node is SearchInWorkspaceRootFolderNode;
33
- }
34
- export interface SearchInWorkspaceFileNode extends ExpandableTreeNode, SelectableTreeNode {
35
- name?: undefined;
36
- icon?: undefined;
37
- children: SearchInWorkspaceResultLineNode[];
38
- parent: SearchInWorkspaceRootFolderNode;
39
- path: string;
40
- fileUri: string;
41
- uri: URI;
42
- }
43
- export declare namespace SearchInWorkspaceFileNode {
44
- function is(node: unknown): node is SearchInWorkspaceFileNode;
45
- }
46
- export interface SearchInWorkspaceResultLineNode extends SelectableTreeNode, SearchInWorkspaceResult, SearchMatch {
47
- parent: SearchInWorkspaceFileNode;
48
- }
49
- export declare namespace SearchInWorkspaceResultLineNode {
50
- function is(node: unknown): node is SearchInWorkspaceResultLineNode;
51
- }
52
- export declare class SearchInWorkspaceResultTreeWidget extends TreeWidget {
53
- protected resultTree: Map<string, SearchInWorkspaceRootFolderNode>;
54
- protected _showReplaceButtons: boolean;
55
- protected _replaceTerm: string;
56
- protected searchTerm: string;
57
- protected searchOptions: SearchInWorkspaceOptions;
58
- protected readonly startSearchOnModification: (activeEditor: EditorWidget) => import("lodash").DebouncedFunc<() => void>;
59
- protected readonly searchOnEditorModificationDelay = 300;
60
- protected readonly toDisposeOnActiveEditorChanged: DisposableCollection;
61
- protected readonly defaultRootName: string;
62
- protected forceVisibleRootNode: boolean;
63
- protected appliedDecorations: Map<string, string[]>;
64
- cancelIndicator?: CancellationTokenSource;
65
- protected changeEmitter: Emitter<Map<string, SearchInWorkspaceRootFolderNode>>;
66
- protected onExpansionChangedEmitter: Emitter<any>;
67
- readonly onExpansionChanged: Event<void>;
68
- protected focusInputEmitter: Emitter<any>;
69
- protected readonly searchService: SearchInWorkspaceService;
70
- protected readonly editorManager: EditorManager;
71
- protected readonly fileResourceResolver: FileResourceResolver;
72
- protected readonly shell: ApplicationShell;
73
- protected readonly workspaceService: WorkspaceService;
74
- protected readonly expansionService: TreeExpansionService;
75
- protected readonly searchInWorkspacePreferences: SearchInWorkspacePreferences;
76
- protected readonly progressService: ProgressService;
77
- protected readonly colorRegistry: ColorRegistry;
78
- protected readonly filesystemPreferences: FileSystemPreferences;
79
- protected readonly fileService: FileService;
80
- constructor(props: TreeProps, model: TreeModel, contextMenuRenderer: ContextMenuRenderer);
81
- protected init(): void;
82
- get fileNumber(): number;
83
- set showReplaceButtons(srb: boolean);
84
- set replaceTerm(rt: string);
85
- get isReplacing(): boolean;
86
- get onChange(): Event<Map<string, SearchInWorkspaceRootFolderNode>>;
87
- get onFocusInput(): Event<void>;
88
- collapseAll(): void;
89
- expandAll(): void;
90
- areResultsCollapsed(): boolean;
91
- /**
92
- * Find matches for the given editor.
93
- * @param searchTerm the search term.
94
- * @param widget the editor widget.
95
- * @param searchOptions the search options to apply.
96
- *
97
- * @returns the list of matches.
98
- */
99
- protected findMatches(searchTerm: string, widget: EditorWidget, searchOptions: SearchInWorkspaceOptions): SearchMatch[];
100
- /**
101
- * Convert a pattern to match all directories.
102
- * @param workspaceRootUri the uri of the current workspace root.
103
- * @param pattern the pattern to be converted.
104
- */
105
- protected convertPatternToGlob(workspaceRootUri: URI | undefined, pattern: string): string;
106
- /**
107
- * Determine if the URI matches any of the patterns.
108
- * @param uri the editor URI.
109
- * @param patterns the glob patterns to verify.
110
- */
111
- protected inPatternList(uri: URI, patterns: string[]): boolean;
112
- /**
113
- * Determine if the given editor satisfies the filtering criteria.
114
- * An editor should be searched only if:
115
- * - it is not excluded through the `excludes` list.
116
- * - it is not explicitly present in a non-empty `includes` list.
117
- */
118
- protected shouldApplySearch(editorWidget: EditorWidget, searchOptions: SearchInWorkspaceOptions): boolean;
119
- /**
120
- * Search the active editor only and update the tree with those results.
121
- */
122
- protected searchActiveEditor(activeEditor: EditorWidget, searchTerm: string, searchOptions: SearchInWorkspaceOptions): void;
123
- /**
124
- * Perform a search in all open editors.
125
- * @param searchTerm the search term.
126
- * @param searchOptions the search options to apply.
127
- *
128
- * @returns the tuple of result count, and the list of search results.
129
- */
130
- protected searchInOpenEditors(searchTerm: string, searchOptions: SearchInWorkspaceOptions): {
131
- numberOfResults: number;
132
- matches: SearchInWorkspaceResult[];
133
- };
134
- /**
135
- * Perform a search in the target editor.
136
- * @param editorWidget the editor widget.
137
- * @param searchTerm the search term.
138
- * @param searchOptions the search options to apply.
139
- *
140
- * @returns the search results from the given editor, undefined if the editor is either filtered or has no matches found.
141
- */
142
- protected searchInEditor(editorWidget: EditorWidget, searchTerm: string, searchOptions: SearchInWorkspaceOptions): SearchInWorkspaceResult | undefined;
143
- /**
144
- * Append search results to the result tree.
145
- * @param result Search result.
146
- */
147
- protected appendToResultTree(result: SearchInWorkspaceResult): void;
148
- /**
149
- * Handle when searching completed.
150
- */
151
- protected handleSearchCompleted(cancelIndicator?: CancellationTokenSource): void;
152
- /**
153
- * Sort the result tree by URIs.
154
- */
155
- protected sortResultTree(): void;
156
- /**
157
- * Search and populate the result tree with matches.
158
- * @param searchTerm the search term.
159
- * @param searchOptions the search options to apply.
160
- */
161
- search(searchTerm: string, searchOptions: SearchInWorkspaceOptions): Promise<void>;
162
- focusFirstResult(): void;
163
- /**
164
- * Collapse the search-in-workspace file node
165
- * based on the preference value.
166
- */
167
- protected collapseFileNode(node: SearchInWorkspaceFileNode, preferenceValue: string): void;
168
- protected handleUp(event: KeyboardEvent): void;
169
- protected refreshModelChildren(): Promise<void>;
170
- protected updateCurrentEditorDecorations(): void;
171
- protected createRootFolderNode(rootUri: string): SearchInWorkspaceRootFolderNode;
172
- protected createFileNode(rootUri: string, path: string, fileUri: string, parent: SearchInWorkspaceRootFolderNode): SearchInWorkspaceFileNode;
173
- protected createResultLineNode(result: SearchInWorkspaceResult, match: SearchMatch, fileNode: SearchInWorkspaceFileNode): SearchInWorkspaceResultLineNode;
174
- protected getFileNodesByUri(uri: URI): SearchInWorkspaceFileNode[];
175
- protected filenameAndPath(rootUriStr: string, uriStr: string): {
176
- name: string;
177
- path: string;
178
- };
179
- protected getDepthPadding(depth: number): number;
180
- protected renderCaption(node: TreeNode, props: NodeProps): React.ReactNode;
181
- protected renderTailDecorations(node: TreeNode, props: NodeProps): React.ReactNode;
182
- protected doReplace(node: TreeNode, e: React.MouseEvent<HTMLElement>): void;
183
- protected renderReplaceButton(node: TreeNode): React.ReactNode;
184
- protected getFileCount(node: TreeNode): number;
185
- protected getResultCount(node: TreeNode): number;
186
- /**
187
- * Replace results under the node passed into the function. If node is undefined, replace all results.
188
- * @param node Node in the tree widget where the "replace all" operation is performed
189
- */
190
- replace(node: TreeNode | undefined): Promise<void>;
191
- protected confirmReplaceAll(resultNumber: number, fileNumber: number, replacementText: string): Promise<boolean | undefined>;
192
- protected buildReplaceAllConfirmationMessage(occurrences: number, fileCount: number, replaceValue: string): string;
193
- protected updateRightResults(node: SearchInWorkspaceResultLineNode): void;
194
- /**
195
- * Replace text either in all search matches under a node or in all search matches, and save the changes.
196
- * @param node - node in the tree widget in which the "replace all" is performed.
197
- * @param {boolean} replaceOne - whether the function is to replace all matches under a node. If it is false, replace all.
198
- * @param replacementText - text to be used for all replacements in the current replacement cycle.
199
- */
200
- protected replaceResult(node: TreeNode, replaceOne: boolean, replacementText: string): Promise<void>;
201
- protected readonly remove: (node: TreeNode, e: React.MouseEvent<HTMLElement>) => void;
202
- protected doRemove(node: TreeNode, e: React.MouseEvent<HTMLElement>): void;
203
- protected renderRemoveButton(node: TreeNode): React.ReactNode;
204
- removeNode(node: TreeNode): void;
205
- private removeRootFolderNode;
206
- private removeFileNode;
207
- private removeResultLineNode;
208
- private findEndCharacterPosition;
209
- protected renderRootFolderNode(node: SearchInWorkspaceRootFolderNode): React.ReactNode;
210
- protected renderFileNode(node: SearchInWorkspaceFileNode): React.ReactNode;
211
- protected renderResultLineNode(node: SearchInWorkspaceResultLineNode): React.ReactNode;
212
- protected renderMatchLinePart(node: SearchInWorkspaceResultLineNode): React.ReactNode;
213
- /**
214
- * Get the editor widget by the node.
215
- * @param {SearchInWorkspaceResultLineNode} node - the node representing a match in the search results.
216
- * @returns The editor widget to which the text replace will be done.
217
- */
218
- protected doGetWidget(node: SearchInWorkspaceResultLineNode): Promise<EditorWidget>;
219
- protected doOpen(node: SearchInWorkspaceResultLineNode, asDiffWidget?: boolean, preview?: boolean): Promise<EditorWidget>;
220
- protected createReplacePreview(node: SearchInWorkspaceFileNode): Promise<URI>;
221
- protected decorateEditor(node: SearchInWorkspaceFileNode | undefined, editorWidget: EditorWidget): void;
222
- protected createEditorDecorations(resultNode: SearchInWorkspaceFileNode | undefined): EditorDecoration[];
223
- /**
224
- * Get the list of exclude globs.
225
- * @param excludeOptions the exclude search option.
226
- *
227
- * @returns the list of exclude globs.
228
- */
229
- protected getExcludeGlobs(excludeOptions?: string[]): string[];
230
- /**
231
- * Compare two normalized strings.
232
- *
233
- * @param a {string} the first string.
234
- * @param b {string} the second string.
235
- */
236
- private compare;
237
- /**
238
- * @param recursive if true, all child nodes will be included in the stringified result.
239
- */
240
- nodeToString(node: TreeNode, recursive: boolean): string;
241
- treeToString(): string;
242
- protected getVisibleNodes(): IterableIterator<TreeNode>;
243
- protected nodeIteratorToString(nodes: Iterable<TreeNode>): string;
244
- }
245
- export declare namespace SearchInWorkspaceResultTreeWidget {
246
- namespace Menus {
247
- const BASE: string[];
248
- /** Dismiss command, or others that only affect the widget itself */
249
- const INTERNAL: string[];
250
- /** Copy a stringified representation of content */
251
- const COPY: string[];
252
- /** Commands that lead out of the widget, like revealing a file in the navigator */
253
- const EXTERNAL: string[];
254
- }
255
- }
1
+ /// <reference types="react" />
2
+ import { TreeWidget, CompositeTreeNode, ContextMenuRenderer, ExpandableTreeNode, SelectableTreeNode, TreeModel, TreeNode, NodeProps, TreeProps, TreeExpansionService, ApplicationShell } from '@theia/core/lib/browser';
3
+ import { CancellationTokenSource, Emitter, Event, ProgressService } from '@theia/core';
4
+ import { EditorManager, EditorDecoration, EditorWidget } from '@theia/editor/lib/browser';
5
+ import { WorkspaceService } from '@theia/workspace/lib/browser';
6
+ import { FileResourceResolver, FileSystemPreferences } from '@theia/filesystem/lib/browser';
7
+ import { FileService } from '@theia/filesystem/lib/browser/file-service';
8
+ import { SearchInWorkspaceResult, SearchInWorkspaceOptions, SearchMatch } from '../common/search-in-workspace-interface';
9
+ import { SearchInWorkspaceService } from './search-in-workspace-service';
10
+ import URI from '@theia/core/lib/common/uri';
11
+ import * as React from '@theia/core/shared/react';
12
+ import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
13
+ import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
14
+ import { DisposableCollection } from '@theia/core/lib/common/disposable';
15
+ export interface SearchInWorkspaceRoot extends CompositeTreeNode {
16
+ children: SearchInWorkspaceRootFolderNode[];
17
+ }
18
+ export declare namespace SearchInWorkspaceRoot {
19
+ function is(node: unknown): node is SearchInWorkspaceRoot;
20
+ }
21
+ export interface SearchInWorkspaceRootFolderNode extends ExpandableTreeNode, SelectableTreeNode {
22
+ name?: undefined;
23
+ icon?: undefined;
24
+ children: SearchInWorkspaceFileNode[];
25
+ parent: SearchInWorkspaceRoot;
26
+ path: string;
27
+ folderUri: string;
28
+ uri: URI;
29
+ }
30
+ export declare namespace SearchInWorkspaceRootFolderNode {
31
+ function is(node: unknown): node is SearchInWorkspaceRootFolderNode;
32
+ }
33
+ export interface SearchInWorkspaceFileNode extends ExpandableTreeNode, SelectableTreeNode {
34
+ name?: undefined;
35
+ icon?: undefined;
36
+ children: SearchInWorkspaceResultLineNode[];
37
+ parent: SearchInWorkspaceRootFolderNode;
38
+ path: string;
39
+ fileUri: string;
40
+ uri: URI;
41
+ }
42
+ export declare namespace SearchInWorkspaceFileNode {
43
+ function is(node: unknown): node is SearchInWorkspaceFileNode;
44
+ }
45
+ export interface SearchInWorkspaceResultLineNode extends SelectableTreeNode, SearchInWorkspaceResult, SearchMatch {
46
+ parent: SearchInWorkspaceFileNode;
47
+ }
48
+ export declare namespace SearchInWorkspaceResultLineNode {
49
+ function is(node: unknown): node is SearchInWorkspaceResultLineNode;
50
+ }
51
+ export declare class SearchInWorkspaceResultTreeWidget extends TreeWidget {
52
+ protected resultTree: Map<string, SearchInWorkspaceRootFolderNode>;
53
+ protected _showReplaceButtons: boolean;
54
+ protected _replaceTerm: string;
55
+ protected searchTerm: string;
56
+ protected searchOptions: SearchInWorkspaceOptions;
57
+ protected readonly startSearchOnModification: (activeEditor: EditorWidget) => import("lodash").DebouncedFunc<() => void>;
58
+ protected readonly searchOnEditorModificationDelay = 300;
59
+ protected readonly toDisposeOnActiveEditorChanged: DisposableCollection;
60
+ protected readonly defaultRootName: string;
61
+ protected forceVisibleRootNode: boolean;
62
+ protected appliedDecorations: Map<string, string[]>;
63
+ cancelIndicator?: CancellationTokenSource;
64
+ protected changeEmitter: Emitter<Map<string, SearchInWorkspaceRootFolderNode>>;
65
+ protected onExpansionChangedEmitter: Emitter<any>;
66
+ readonly onExpansionChanged: Event<void>;
67
+ protected focusInputEmitter: Emitter<any>;
68
+ protected readonly searchService: SearchInWorkspaceService;
69
+ protected readonly editorManager: EditorManager;
70
+ protected readonly fileResourceResolver: FileResourceResolver;
71
+ protected readonly shell: ApplicationShell;
72
+ protected readonly workspaceService: WorkspaceService;
73
+ protected readonly expansionService: TreeExpansionService;
74
+ protected readonly searchInWorkspacePreferences: SearchInWorkspacePreferences;
75
+ protected readonly progressService: ProgressService;
76
+ protected readonly colorRegistry: ColorRegistry;
77
+ protected readonly filesystemPreferences: FileSystemPreferences;
78
+ protected readonly fileService: FileService;
79
+ constructor(props: TreeProps, model: TreeModel, contextMenuRenderer: ContextMenuRenderer);
80
+ protected init(): void;
81
+ get fileNumber(): number;
82
+ set showReplaceButtons(srb: boolean);
83
+ set replaceTerm(rt: string);
84
+ get isReplacing(): boolean;
85
+ get onChange(): Event<Map<string, SearchInWorkspaceRootFolderNode>>;
86
+ get onFocusInput(): Event<void>;
87
+ collapseAll(): void;
88
+ expandAll(): void;
89
+ areResultsCollapsed(): boolean;
90
+ selectNextResult(): void;
91
+ selectPreviousResult(): void;
92
+ protected selectExpandOpenResultNode(node: SearchInWorkspaceResultLineNode): void;
93
+ protected selectFirstResult(): void;
94
+ protected selectLastResult(): void;
95
+ /**
96
+ * Find matches for the given editor.
97
+ * @param searchTerm the search term.
98
+ * @param widget the editor widget.
99
+ * @param searchOptions the search options to apply.
100
+ *
101
+ * @returns the list of matches.
102
+ */
103
+ protected findMatches(searchTerm: string, widget: EditorWidget, searchOptions: SearchInWorkspaceOptions): SearchMatch[];
104
+ /**
105
+ * Convert a pattern to match all directories.
106
+ * @param workspaceRootUri the uri of the current workspace root.
107
+ * @param pattern the pattern to be converted.
108
+ */
109
+ protected convertPatternToGlob(workspaceRootUri: URI | undefined, pattern: string): string;
110
+ /**
111
+ * Determine if the URI matches any of the patterns.
112
+ * @param uri the editor URI.
113
+ * @param patterns the glob patterns to verify.
114
+ */
115
+ protected inPatternList(uri: URI, patterns: string[]): boolean;
116
+ /**
117
+ * Determine if the given editor satisfies the filtering criteria.
118
+ * An editor should be searched only if:
119
+ * - it is not excluded through the `excludes` list.
120
+ * - it is not explicitly present in a non-empty `includes` list.
121
+ */
122
+ protected shouldApplySearch(editorWidget: EditorWidget, searchOptions: SearchInWorkspaceOptions): boolean;
123
+ /**
124
+ * Search the active editor only and update the tree with those results.
125
+ */
126
+ protected searchActiveEditor(activeEditor: EditorWidget, searchTerm: string, searchOptions: SearchInWorkspaceOptions): void;
127
+ /**
128
+ * Perform a search in all open editors.
129
+ * @param searchTerm the search term.
130
+ * @param searchOptions the search options to apply.
131
+ *
132
+ * @returns the tuple of result count, and the list of search results.
133
+ */
134
+ protected searchInOpenEditors(searchTerm: string, searchOptions: SearchInWorkspaceOptions): {
135
+ numberOfResults: number;
136
+ matches: SearchInWorkspaceResult[];
137
+ };
138
+ /**
139
+ * Perform a search in the target editor.
140
+ * @param editorWidget the editor widget.
141
+ * @param searchTerm the search term.
142
+ * @param searchOptions the search options to apply.
143
+ *
144
+ * @returns the search results from the given editor, undefined if the editor is either filtered or has no matches found.
145
+ */
146
+ protected searchInEditor(editorWidget: EditorWidget, searchTerm: string, searchOptions: SearchInWorkspaceOptions): SearchInWorkspaceResult | undefined;
147
+ /**
148
+ * Append search results to the result tree.
149
+ * @param result Search result.
150
+ */
151
+ protected appendToResultTree(result: SearchInWorkspaceResult): void;
152
+ /**
153
+ * Handle when searching completed.
154
+ */
155
+ protected handleSearchCompleted(cancelIndicator?: CancellationTokenSource): void;
156
+ /**
157
+ * Sort the result tree by URIs.
158
+ */
159
+ protected sortResultTree(): void;
160
+ /**
161
+ * Search and populate the result tree with matches.
162
+ * @param searchTerm the search term.
163
+ * @param searchOptions the search options to apply.
164
+ */
165
+ search(searchTerm: string, searchOptions: SearchInWorkspaceOptions): Promise<void>;
166
+ focusFirstResult(): void;
167
+ /**
168
+ * Collapse the search-in-workspace file node
169
+ * based on the preference value.
170
+ */
171
+ protected collapseFileNode(node: SearchInWorkspaceFileNode, preferenceValue: string): void;
172
+ protected handleUp(event: KeyboardEvent): void;
173
+ protected refreshModelChildren(): Promise<void>;
174
+ protected updateCurrentEditorDecorations(): void;
175
+ protected createRootFolderNode(rootUri: string): SearchInWorkspaceRootFolderNode;
176
+ protected createFileNode(rootUri: string, path: string, fileUri: string, parent: SearchInWorkspaceRootFolderNode): SearchInWorkspaceFileNode;
177
+ protected createResultLineNode(result: SearchInWorkspaceResult, match: SearchMatch, fileNode: SearchInWorkspaceFileNode): SearchInWorkspaceResultLineNode;
178
+ protected getFileNodesByUri(uri: URI): SearchInWorkspaceFileNode[];
179
+ protected filenameAndPath(rootUriStr: string, uriStr: string): {
180
+ name: string;
181
+ path: string;
182
+ };
183
+ protected getDepthPadding(depth: number): number;
184
+ protected renderCaption(node: TreeNode, props: NodeProps): React.ReactNode;
185
+ protected renderTailDecorations(node: TreeNode, props: NodeProps): React.ReactNode;
186
+ protected doReplace(node: TreeNode, e: React.MouseEvent<HTMLElement>): void;
187
+ protected renderReplaceButton(node: TreeNode): React.ReactNode;
188
+ protected getFileCount(node: TreeNode): number;
189
+ protected getResultCount(node: TreeNode): number;
190
+ /**
191
+ * Replace results under the node passed into the function. If node is undefined, replace all results.
192
+ * @param node Node in the tree widget where the "replace all" operation is performed
193
+ */
194
+ replace(node: TreeNode | undefined): Promise<void>;
195
+ protected confirmReplaceAll(resultNumber: number, fileNumber: number, replacementText: string): Promise<boolean | undefined>;
196
+ protected buildReplaceAllConfirmationMessage(occurrences: number, fileCount: number, replaceValue: string): string;
197
+ protected updateRightResults(node: SearchInWorkspaceResultLineNode): void;
198
+ /**
199
+ * Replace text either in all search matches under a node or in all search matches, and save the changes.
200
+ * @param node - node in the tree widget in which the "replace all" is performed.
201
+ * @param {boolean} replaceOne - whether the function is to replace all matches under a node. If it is false, replace all.
202
+ * @param replacementText - text to be used for all replacements in the current replacement cycle.
203
+ */
204
+ protected replaceResult(node: TreeNode, replaceOne: boolean, replacementText: string): Promise<void>;
205
+ protected readonly remove: (node: TreeNode, e: React.MouseEvent<HTMLElement>) => void;
206
+ protected doRemove(node: TreeNode, e: React.MouseEvent<HTMLElement>): void;
207
+ protected renderRemoveButton(node: TreeNode): React.ReactNode;
208
+ removeNode(node: TreeNode): void;
209
+ private removeRootFolderNode;
210
+ private removeFileNode;
211
+ private removeResultLineNode;
212
+ private findEndCharacterPosition;
213
+ protected renderRootFolderNode(node: SearchInWorkspaceRootFolderNode): React.ReactNode;
214
+ protected renderFileNode(node: SearchInWorkspaceFileNode): React.ReactNode;
215
+ protected renderResultLineNode(node: SearchInWorkspaceResultLineNode): React.ReactNode;
216
+ protected renderMatchLinePart(node: SearchInWorkspaceResultLineNode): React.ReactNode;
217
+ /**
218
+ * Get the editor widget by the node.
219
+ * @param {SearchInWorkspaceResultLineNode} node - the node representing a match in the search results.
220
+ * @returns The editor widget to which the text replace will be done.
221
+ */
222
+ protected doGetWidget(node: SearchInWorkspaceResultLineNode): Promise<EditorWidget>;
223
+ protected doOpen(node: SearchInWorkspaceResultLineNode, asDiffWidget?: boolean, preview?: boolean): Promise<EditorWidget>;
224
+ protected createReplacePreview(node: SearchInWorkspaceFileNode): Promise<URI>;
225
+ protected decorateEditor(node: SearchInWorkspaceFileNode | undefined, editorWidget: EditorWidget): void;
226
+ protected createEditorDecorations(resultNode: SearchInWorkspaceFileNode | undefined): EditorDecoration[];
227
+ /**
228
+ * Get the list of exclude globs.
229
+ * @param excludeOptions the exclude search option.
230
+ *
231
+ * @returns the list of exclude globs.
232
+ */
233
+ protected getExcludeGlobs(excludeOptions?: string[]): string[];
234
+ /**
235
+ * Compare two normalized strings.
236
+ *
237
+ * @param a {string} the first string.
238
+ * @param b {string} the second string.
239
+ */
240
+ private compare;
241
+ /**
242
+ * @param recursive if true, all child nodes will be included in the stringified result.
243
+ */
244
+ nodeToString(node: TreeNode, recursive: boolean): string;
245
+ treeToString(): string;
246
+ protected getVisibleNodes(): IterableIterator<TreeNode>;
247
+ protected nodeIteratorToString(nodes: Iterable<TreeNode>): string;
248
+ }
249
+ export declare namespace SearchInWorkspaceResultTreeWidget {
250
+ namespace Menus {
251
+ const BASE: string[];
252
+ /** Dismiss command, or others that only affect the widget itself */
253
+ const INTERNAL: string[];
254
+ /** Copy a stringified representation of content */
255
+ const COPY: string[];
256
+ /** Commands that lead out of the widget, like revealing a file in the navigator */
257
+ const EXTERNAL: string[];
258
+ }
259
+ }
256
260
  //# sourceMappingURL=search-in-workspace-result-tree-widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-in-workspace-result-tree-widget.d.ts","sourceRoot":"","sources":["../../src/browser/search-in-workspace-result-tree-widget.tsx"],"names":[],"mappings":";;AAiBA,OAAO,EACH,UAAU,EACV,iBAAiB,EAEjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,gBAAgB,EAKnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EACH,aAAa,EAAE,gBAAgB,EAC/B,YAAY,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACzH,OAA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AI,EAAE,+BAA+B,EAAE,YAAY,UAAQ,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;cAgC3G,oBAAoB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC;IAenF,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,GAAG,SAAS,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAavG,SAAS,CAAC,uBAAuB,CAAC,UAAU,EAAE,yBAAyB,GAAG,SAAS,GAAG,gBAAgB,EAAE;IA+BxG;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE;IAM9D;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAMf;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM;IAaxD,YAAY,IAAI,MAAM;IAItB,SAAS,CAAE,eAAe,IAAI,gBAAgB,CAAC,QAAQ,CAAC;IAMxD,SAAS,CAAC,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,MAAM;CAUpE;AAED,yBAAiB,iCAAiC,CAAC;IAC/C,UAAiB,KAAK,CAAC;QACZ,MAAM,IAAI,UAA4B,CAAC;QAC9C,oEAAoE;QAC7D,MAAM,QAAQ,UAA0B,CAAC;QAChD,mDAAmD;QAC5C,MAAM,IAAI,UAAsB,CAAC;QACxC,mFAAmF;QAC5E,MAAM,QAAQ,UAA0B,CAAC;KACnD;CACJ"}
1
+ {"version":3,"file":"search-in-workspace-result-tree-widget.d.ts","sourceRoot":"","sources":["../../src/browser/search-in-workspace-result-tree-widget.tsx"],"names":[],"mappings":";AAiBA,OAAO,EACH,UAAU,EACV,iBAAiB,EAEjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,oBAAoB,E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