@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.
- package/README.md +40 -40
- package/lib/browser/components/search-in-workspace-input.d.ts +39 -39
- package/lib/browser/components/search-in-workspace-input.js +123 -123
- package/lib/browser/components/search-in-workspace-textarea.d.ts +39 -39
- package/lib/browser/components/search-in-workspace-textarea.js +130 -130
- package/lib/browser/search-in-workspace-context-key-service.d.ts +23 -23
- package/lib/browser/search-in-workspace-context-key-service.js +90 -90
- package/lib/browser/search-in-workspace-factory.d.ts +10 -10
- package/lib/browser/search-in-workspace-factory.js +68 -68
- package/lib/browser/search-in-workspace-frontend-contribution.d.ts +57 -55
- package/lib/browser/search-in-workspace-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/search-in-workspace-frontend-contribution.js +516 -482
- package/lib/browser/search-in-workspace-frontend-contribution.js.map +1 -1
- package/lib/browser/search-in-workspace-frontend-module.d.ts +6 -6
- package/lib/browser/search-in-workspace-frontend-module.js +71 -71
- package/lib/browser/search-in-workspace-label-provider.d.ts +9 -9
- package/lib/browser/search-in-workspace-label-provider.js +57 -57
- package/lib/browser/search-in-workspace-preferences.d.ts +17 -17
- package/lib/browser/search-in-workspace-preferences.js +87 -87
- package/lib/browser/search-in-workspace-result-tree-widget.d.ts +259 -255
- package/lib/browser/search-in-workspace-result-tree-widget.d.ts.map +1 -1
- package/lib/browser/search-in-workspace-result-tree-widget.js +1172 -1099
- package/lib/browser/search-in-workspace-result-tree-widget.js.map +1 -1
- package/lib/browser/search-in-workspace-service.d.ts +35 -35
- package/lib/browser/search-in-workspace-service.js +158 -158
- package/lib/browser/search-in-workspace-widget.d.ts +121 -121
- package/lib/browser/search-in-workspace-widget.js +629 -629
- package/lib/browser/search-layout-migrations.d.ts +5 -5
- package/lib/browser/search-layout-migrations.js +64 -64
- package/lib/common/search-in-workspace-interface.d.ts +116 -116
- package/lib/common/search-in-workspace-interface.js +35 -35
- package/lib/node/ripgrep-search-in-workspace-server.d.ts +94 -94
- package/lib/node/ripgrep-search-in-workspace-server.js +430 -430
- package/lib/node/ripgrep-search-in-workspace-server.js.map +1 -1
- package/lib/node/ripgrep-search-in-workspace-server.slow-spec.d.ts +1 -1
- package/lib/node/ripgrep-search-in-workspace-server.slow-spec.js +899 -899
- package/lib/node/ripgrep-search-in-workspace-server.slow-spec.js.map +1 -1
- package/lib/node/search-in-workspace-backend-module.d.ts +3 -3
- package/lib/node/search-in-workspace-backend-module.js +32 -32
- package/package.json +9 -9
- package/src/browser/components/search-in-workspace-input.tsx +139 -139
- package/src/browser/components/search-in-workspace-textarea.tsx +153 -153
- package/src/browser/search-in-workspace-context-key-service.ts +93 -93
- package/src/browser/search-in-workspace-factory.ts +59 -59
- package/src/browser/search-in-workspace-frontend-contribution.ts +510 -474
- package/src/browser/search-in-workspace-frontend-module.ts +83 -83
- package/src/browser/search-in-workspace-label-provider.ts +48 -48
- package/src/browser/search-in-workspace-preferences.ts +96 -96
- package/src/browser/search-in-workspace-result-tree-widget.tsx +1318 -1245
- package/src/browser/search-in-workspace-service.ts +152 -152
- package/src/browser/search-in-workspace-widget.tsx +727 -727
- package/src/browser/search-layout-migrations.ts +53 -53
- package/src/browser/styles/index.css +400 -400
- package/src/browser/styles/search.svg +6 -6
- package/src/common/search-in-workspace-interface.ts +153 -153
- package/src/node/ripgrep-search-in-workspace-server.slow-spec.ts +1073 -1073
- package/src/node/ripgrep-search-in-workspace-server.ts +490 -490
- package/src/node/search-in-workspace-backend-module.ts +33 -33
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Widget, Message, BaseWidget, StatefulWidget } from '@theia/core/lib/browser';
|
|
3
|
-
import { SearchInWorkspaceResultTreeWidget } from './search-in-workspace-result-tree-widget';
|
|
4
|
-
import { SearchInWorkspaceOptions } from '../common/search-in-workspace-interface';
|
|
5
|
-
import * as React from '@theia/core/shared/react';
|
|
6
|
-
import { Root } from '@theia/core/shared/react-dom/client';
|
|
7
|
-
import { Event, Emitter } from '@theia/core/lib/common';
|
|
8
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
9
|
-
import { SearchInWorkspaceContextKeyService } from './search-in-workspace-context-key-service';
|
|
10
|
-
import { CancellationTokenSource } from '@theia/core';
|
|
11
|
-
import { ProgressBarFactory } from '@theia/core/lib/browser/progress-bar-factory';
|
|
12
|
-
import { EditorManager } from '@theia/editor/lib/browser';
|
|
13
|
-
import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
|
|
14
|
-
export interface SearchFieldState {
|
|
15
|
-
className: string;
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
title: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidget {
|
|
20
|
-
static ID: string;
|
|
21
|
-
static LABEL: string;
|
|
22
|
-
protected matchCaseState: SearchFieldState;
|
|
23
|
-
protected wholeWordState: SearchFieldState;
|
|
24
|
-
protected regExpState: SearchFieldState;
|
|
25
|
-
protected includeIgnoredState: SearchFieldState;
|
|
26
|
-
protected showSearchDetails: boolean;
|
|
27
|
-
protected _hasResults: boolean;
|
|
28
|
-
protected get hasResults(): boolean;
|
|
29
|
-
protected set hasResults(hasResults: boolean);
|
|
30
|
-
protected resultNumber: number;
|
|
31
|
-
protected searchFieldContainerIsFocused: boolean;
|
|
32
|
-
protected searchInWorkspaceOptions: SearchInWorkspaceOptions;
|
|
33
|
-
protected searchTerm: string;
|
|
34
|
-
protected replaceTerm: string;
|
|
35
|
-
private searchRef;
|
|
36
|
-
private replaceRef;
|
|
37
|
-
private includeRef;
|
|
38
|
-
private excludeRef;
|
|
39
|
-
protected _showReplaceField: boolean;
|
|
40
|
-
protected get showReplaceField(): boolean;
|
|
41
|
-
protected set showReplaceField(showReplaceField: boolean);
|
|
42
|
-
protected contentNode: HTMLElement;
|
|
43
|
-
protected searchFormContainer: HTMLElement;
|
|
44
|
-
protected resultContainer: HTMLElement;
|
|
45
|
-
protected readonly onDidUpdateEmitter: Emitter<void>;
|
|
46
|
-
readonly onDidUpdate: Event<void>;
|
|
47
|
-
readonly resultTreeWidget: SearchInWorkspaceResultTreeWidget;
|
|
48
|
-
protected readonly workspaceService: WorkspaceService;
|
|
49
|
-
protected readonly contextKeyService: SearchInWorkspaceContextKeyService;
|
|
50
|
-
protected readonly progressBarFactory: ProgressBarFactory;
|
|
51
|
-
protected readonly editorManager: EditorManager;
|
|
52
|
-
protected readonly searchInWorkspacePreferences: SearchInWorkspacePreferences;
|
|
53
|
-
protected searchFormContainerRoot: Root;
|
|
54
|
-
protected init(): void;
|
|
55
|
-
storeState(): object;
|
|
56
|
-
restoreState(oldState: any): void;
|
|
57
|
-
findInFolder(uris: string[]): void;
|
|
58
|
-
/**
|
|
59
|
-
* Update the search term and input field.
|
|
60
|
-
* @param term the search term.
|
|
61
|
-
* @param showReplaceField controls if the replace field should be displayed.
|
|
62
|
-
*/
|
|
63
|
-
updateSearchTerm(term: string, showReplaceField?: boolean): void;
|
|
64
|
-
hasResultList(): boolean;
|
|
65
|
-
hasSearchTerm(): boolean;
|
|
66
|
-
refresh(): void;
|
|
67
|
-
getCancelIndicator(): CancellationTokenSource | undefined;
|
|
68
|
-
collapseAll(): void;
|
|
69
|
-
expandAll(): void;
|
|
70
|
-
areResultsCollapsed(): boolean;
|
|
71
|
-
clear(): void;
|
|
72
|
-
protected onAfterAttach(msg: Message): void;
|
|
73
|
-
protected onUpdateRequest(msg: Message): void;
|
|
74
|
-
protected onResize(msg: Widget.ResizeMessage): void;
|
|
75
|
-
protected onAfterShow(msg: Message): void;
|
|
76
|
-
protected onAfterHide(msg: Message): void;
|
|
77
|
-
protected onActivateRequest(msg: Message): void;
|
|
78
|
-
protected focusInputField(): void;
|
|
79
|
-
protected renderSearchHeader(): React.ReactNode;
|
|
80
|
-
protected renderSearchAndReplace(): React.ReactNode;
|
|
81
|
-
protected renderReplaceFieldToggle(): React.ReactNode;
|
|
82
|
-
protected renderNotification(): React.ReactNode;
|
|
83
|
-
protected readonly focusSearchFieldContainer: () => void;
|
|
84
|
-
protected doFocusSearchFieldContainer(): void;
|
|
85
|
-
protected readonly blurSearchFieldContainer: () => void;
|
|
86
|
-
protected doBlurSearchFieldContainer(): void;
|
|
87
|
-
private _searchTimeout;
|
|
88
|
-
protected readonly search: (e: React.KeyboardEvent) => void;
|
|
89
|
-
protected readonly onKeyDownSearch: (e: React.KeyboardEvent) => void;
|
|
90
|
-
protected doSearch(e: React.KeyboardEvent): void;
|
|
91
|
-
protected performSearch(): void;
|
|
92
|
-
protected shouldFollowSymlinks(): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Determine if search should be case sensitive.
|
|
95
|
-
*/
|
|
96
|
-
protected shouldMatchCase(): boolean;
|
|
97
|
-
protected renderSearchField(): React.ReactNode;
|
|
98
|
-
protected handleFocusSearchInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
99
|
-
protected handleBlurSearchInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
100
|
-
protected readonly updateReplaceTerm: (e: React.KeyboardEvent) => void;
|
|
101
|
-
protected doUpdateReplaceTerm(e: React.KeyboardEvent): void;
|
|
102
|
-
protected renderReplaceField(): React.ReactNode;
|
|
103
|
-
protected handleFocusReplaceInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
104
|
-
protected handleBlurReplaceInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
105
|
-
protected renderReplaceAllButtonContainer(): React.ReactNode;
|
|
106
|
-
protected renderOptionContainer(): React.ReactNode;
|
|
107
|
-
protected renderOptionElement(opt: SearchFieldState): React.ReactNode;
|
|
108
|
-
protected handleOptionClick(option: SearchFieldState): void;
|
|
109
|
-
protected updateSearchOptions(): void;
|
|
110
|
-
protected renderSearchDetails(): React.ReactNode;
|
|
111
|
-
protected renderGlobFieldContainer(): React.ReactNode;
|
|
112
|
-
protected renderExpandGlobFieldsButton(): React.ReactNode;
|
|
113
|
-
protected renderGlobField(kind: 'include' | 'exclude'): React.ReactNode;
|
|
114
|
-
protected handleFocusIncludesInputBox: () => void;
|
|
115
|
-
protected handleBlurIncludesInputBox: () => void;
|
|
116
|
-
protected handleFocusExcludesInputBox: () => void;
|
|
117
|
-
protected handleBlurExcludesInputBox: () => void;
|
|
118
|
-
protected splitOnComma(patterns: string): string[];
|
|
119
|
-
protected renderSearchInfo(): React.ReactNode;
|
|
120
|
-
protected getSearchResultMessage(): string | undefined;
|
|
121
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Widget, Message, BaseWidget, StatefulWidget } from '@theia/core/lib/browser';
|
|
3
|
+
import { SearchInWorkspaceResultTreeWidget } from './search-in-workspace-result-tree-widget';
|
|
4
|
+
import { SearchInWorkspaceOptions } from '../common/search-in-workspace-interface';
|
|
5
|
+
import * as React from '@theia/core/shared/react';
|
|
6
|
+
import { Root } from '@theia/core/shared/react-dom/client';
|
|
7
|
+
import { Event, Emitter } from '@theia/core/lib/common';
|
|
8
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
9
|
+
import { SearchInWorkspaceContextKeyService } from './search-in-workspace-context-key-service';
|
|
10
|
+
import { CancellationTokenSource } from '@theia/core';
|
|
11
|
+
import { ProgressBarFactory } from '@theia/core/lib/browser/progress-bar-factory';
|
|
12
|
+
import { EditorManager } from '@theia/editor/lib/browser';
|
|
13
|
+
import { SearchInWorkspacePreferences } from './search-in-workspace-preferences';
|
|
14
|
+
export interface SearchFieldState {
|
|
15
|
+
className: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
title: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidget {
|
|
20
|
+
static ID: string;
|
|
21
|
+
static LABEL: string;
|
|
22
|
+
protected matchCaseState: SearchFieldState;
|
|
23
|
+
protected wholeWordState: SearchFieldState;
|
|
24
|
+
protected regExpState: SearchFieldState;
|
|
25
|
+
protected includeIgnoredState: SearchFieldState;
|
|
26
|
+
protected showSearchDetails: boolean;
|
|
27
|
+
protected _hasResults: boolean;
|
|
28
|
+
protected get hasResults(): boolean;
|
|
29
|
+
protected set hasResults(hasResults: boolean);
|
|
30
|
+
protected resultNumber: number;
|
|
31
|
+
protected searchFieldContainerIsFocused: boolean;
|
|
32
|
+
protected searchInWorkspaceOptions: SearchInWorkspaceOptions;
|
|
33
|
+
protected searchTerm: string;
|
|
34
|
+
protected replaceTerm: string;
|
|
35
|
+
private searchRef;
|
|
36
|
+
private replaceRef;
|
|
37
|
+
private includeRef;
|
|
38
|
+
private excludeRef;
|
|
39
|
+
protected _showReplaceField: boolean;
|
|
40
|
+
protected get showReplaceField(): boolean;
|
|
41
|
+
protected set showReplaceField(showReplaceField: boolean);
|
|
42
|
+
protected contentNode: HTMLElement;
|
|
43
|
+
protected searchFormContainer: HTMLElement;
|
|
44
|
+
protected resultContainer: HTMLElement;
|
|
45
|
+
protected readonly onDidUpdateEmitter: Emitter<void>;
|
|
46
|
+
readonly onDidUpdate: Event<void>;
|
|
47
|
+
readonly resultTreeWidget: SearchInWorkspaceResultTreeWidget;
|
|
48
|
+
protected readonly workspaceService: WorkspaceService;
|
|
49
|
+
protected readonly contextKeyService: SearchInWorkspaceContextKeyService;
|
|
50
|
+
protected readonly progressBarFactory: ProgressBarFactory;
|
|
51
|
+
protected readonly editorManager: EditorManager;
|
|
52
|
+
protected readonly searchInWorkspacePreferences: SearchInWorkspacePreferences;
|
|
53
|
+
protected searchFormContainerRoot: Root;
|
|
54
|
+
protected init(): void;
|
|
55
|
+
storeState(): object;
|
|
56
|
+
restoreState(oldState: any): void;
|
|
57
|
+
findInFolder(uris: string[]): void;
|
|
58
|
+
/**
|
|
59
|
+
* Update the search term and input field.
|
|
60
|
+
* @param term the search term.
|
|
61
|
+
* @param showReplaceField controls if the replace field should be displayed.
|
|
62
|
+
*/
|
|
63
|
+
updateSearchTerm(term: string, showReplaceField?: boolean): void;
|
|
64
|
+
hasResultList(): boolean;
|
|
65
|
+
hasSearchTerm(): boolean;
|
|
66
|
+
refresh(): void;
|
|
67
|
+
getCancelIndicator(): CancellationTokenSource | undefined;
|
|
68
|
+
collapseAll(): void;
|
|
69
|
+
expandAll(): void;
|
|
70
|
+
areResultsCollapsed(): boolean;
|
|
71
|
+
clear(): void;
|
|
72
|
+
protected onAfterAttach(msg: Message): void;
|
|
73
|
+
protected onUpdateRequest(msg: Message): void;
|
|
74
|
+
protected onResize(msg: Widget.ResizeMessage): void;
|
|
75
|
+
protected onAfterShow(msg: Message): void;
|
|
76
|
+
protected onAfterHide(msg: Message): void;
|
|
77
|
+
protected onActivateRequest(msg: Message): void;
|
|
78
|
+
protected focusInputField(): void;
|
|
79
|
+
protected renderSearchHeader(): React.ReactNode;
|
|
80
|
+
protected renderSearchAndReplace(): React.ReactNode;
|
|
81
|
+
protected renderReplaceFieldToggle(): React.ReactNode;
|
|
82
|
+
protected renderNotification(): React.ReactNode;
|
|
83
|
+
protected readonly focusSearchFieldContainer: () => void;
|
|
84
|
+
protected doFocusSearchFieldContainer(): void;
|
|
85
|
+
protected readonly blurSearchFieldContainer: () => void;
|
|
86
|
+
protected doBlurSearchFieldContainer(): void;
|
|
87
|
+
private _searchTimeout;
|
|
88
|
+
protected readonly search: (e: React.KeyboardEvent) => void;
|
|
89
|
+
protected readonly onKeyDownSearch: (e: React.KeyboardEvent) => void;
|
|
90
|
+
protected doSearch(e: React.KeyboardEvent): void;
|
|
91
|
+
protected performSearch(): void;
|
|
92
|
+
protected shouldFollowSymlinks(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Determine if search should be case sensitive.
|
|
95
|
+
*/
|
|
96
|
+
protected shouldMatchCase(): boolean;
|
|
97
|
+
protected renderSearchField(): React.ReactNode;
|
|
98
|
+
protected handleFocusSearchInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
99
|
+
protected handleBlurSearchInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
100
|
+
protected readonly updateReplaceTerm: (e: React.KeyboardEvent) => void;
|
|
101
|
+
protected doUpdateReplaceTerm(e: React.KeyboardEvent): void;
|
|
102
|
+
protected renderReplaceField(): React.ReactNode;
|
|
103
|
+
protected handleFocusReplaceInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
104
|
+
protected handleBlurReplaceInputBox: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
105
|
+
protected renderReplaceAllButtonContainer(): React.ReactNode;
|
|
106
|
+
protected renderOptionContainer(): React.ReactNode;
|
|
107
|
+
protected renderOptionElement(opt: SearchFieldState): React.ReactNode;
|
|
108
|
+
protected handleOptionClick(option: SearchFieldState): void;
|
|
109
|
+
protected updateSearchOptions(): void;
|
|
110
|
+
protected renderSearchDetails(): React.ReactNode;
|
|
111
|
+
protected renderGlobFieldContainer(): React.ReactNode;
|
|
112
|
+
protected renderExpandGlobFieldsButton(): React.ReactNode;
|
|
113
|
+
protected renderGlobField(kind: 'include' | 'exclude'): React.ReactNode;
|
|
114
|
+
protected handleFocusIncludesInputBox: () => void;
|
|
115
|
+
protected handleBlurIncludesInputBox: () => void;
|
|
116
|
+
protected handleFocusExcludesInputBox: () => void;
|
|
117
|
+
protected handleBlurExcludesInputBox: () => void;
|
|
118
|
+
protected splitOnComma(patterns: string): string[];
|
|
119
|
+
protected renderSearchInfo(): React.ReactNode;
|
|
120
|
+
protected getSearchResultMessage(): string | undefined;
|
|
121
|
+
}
|
|
122
122
|
//# sourceMappingURL=search-in-workspace-widget.d.ts.map
|