@codingame/monaco-vscode-search-service-override 10.1.4 → 11.0.0
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 +3 -2
- package/search.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.js +307 -0
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.js +428 -0
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +21 -19
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +11 -10
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +76 -76
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +10 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +19 -19
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +29 -28
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +32 -29
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.js +298 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.js +458 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/match.js +131 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/rangeDecorations.js +81 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchModel.js +332 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchResult.js +241 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/textSearchHeading.js +278 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +217 -174
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +9 -9
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +12 -12
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +9 -8
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
- package/vscode/src/vs/workbench/services/search/common/replace.js +205 -0
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +74 -0
- package/vscode/src/vs/workbench/services/search/common/searchService.js +4 -1
- package/workers/localFileSearch.worker.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -323
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -29
- /package/vscode/src/vs/workbench/services/search/worker/{localFileSearch.esm.js → localFileSearchMain.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.0.0"
|
|
33
34
|
}
|
|
34
35
|
}
|
package/search.js
CHANGED
|
@@ -2,8 +2,8 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
|
2
2
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
3
|
import { ISearchService } from 'vscode/vscode/vs/workbench/services/search/common/search.service';
|
|
4
4
|
import { SearchService } from './vscode/src/vs/workbench/services/search/common/searchService.js';
|
|
5
|
-
import { SearchViewModelWorkbenchService } from 'vscode/
|
|
6
|
-
import { ISearchViewModelWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/search/browser/
|
|
5
|
+
import { SearchViewModelWorkbenchService } from './vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchModel.js';
|
|
6
|
+
import { ISearchViewModelWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchViewModelWorkbenchService.service';
|
|
7
7
|
import { SearchHistoryService } from './vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js';
|
|
8
8
|
import { ISearchHistoryService } from 'vscode/vscode/vs/workbench/contrib/search/common/searchHistoryService.service';
|
|
9
9
|
import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace.service';
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
8
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
9
|
+
import { resultIsMatch } from 'vscode/vscode/vs/workbench/services/search/common/search';
|
|
10
|
+
import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace.service';
|
|
11
|
+
import { FileMatchImpl } from '../searchTreeModel/fileMatch.js';
|
|
12
|
+
import { TEXT_SEARCH_HEADING_PREFIX, AI_TEXT_SEARCH_RESULT_ID, FOLDER_MATCH_PREFIX, getFileMatches, FILE_MATCH_PREFIX } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon';
|
|
13
|
+
import { TextSearchHeadingImpl } from '../searchTreeModel/textSearchHeading.js';
|
|
14
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
15
|
+
import { textSearchResultToMatches } from '../searchTreeModel/match.js';
|
|
16
|
+
|
|
17
|
+
let AITextSearchHeadingImpl = class AITextSearchHeadingImpl extends TextSearchHeadingImpl {
|
|
18
|
+
constructor(parent, instantiationService, uriIdentityService) {
|
|
19
|
+
super(false, parent, instantiationService, uriIdentityService);
|
|
20
|
+
}
|
|
21
|
+
name() {
|
|
22
|
+
return 'AI';
|
|
23
|
+
}
|
|
24
|
+
id() {
|
|
25
|
+
return TEXT_SEARCH_HEADING_PREFIX + AI_TEXT_SEARCH_RESULT_ID;
|
|
26
|
+
}
|
|
27
|
+
get isAIContributed() {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
get query() {
|
|
31
|
+
return this._query;
|
|
32
|
+
}
|
|
33
|
+
set query(query) {
|
|
34
|
+
this.clearQuery();
|
|
35
|
+
if (!query) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this._folderMatches = ( ( (query && query.folderQueries || [])
|
|
39
|
+
.map(fq => fq.folder))
|
|
40
|
+
.map((resource, index) => this._createBaseFolderMatch(resource, ( resource.toString()), index, query)));
|
|
41
|
+
this._folderMatches.forEach(fm => this._folderMatchesMap.set(fm.resource, fm));
|
|
42
|
+
this._query = query;
|
|
43
|
+
}
|
|
44
|
+
_createBaseFolderMatch(resource, id, index, query) {
|
|
45
|
+
const folderMatch = this._register(this.createWorkspaceRootWithResourceImpl(resource, id, index, query));
|
|
46
|
+
const disposable = folderMatch.onChange((event) => this._onChange.fire(event));
|
|
47
|
+
this._register(folderMatch.onDispose(() => disposable.dispose()));
|
|
48
|
+
return folderMatch;
|
|
49
|
+
}
|
|
50
|
+
createWorkspaceRootWithResourceImpl(resource, id, index, query) {
|
|
51
|
+
return this.instantiationService.createInstance(AIFolderMatchWorkspaceRootImpl, resource, id, index, query, this);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
AITextSearchHeadingImpl = ( __decorate([
|
|
55
|
+
( __param(1, IInstantiationService)),
|
|
56
|
+
( __param(2, IUriIdentityService))
|
|
57
|
+
], AITextSearchHeadingImpl));
|
|
58
|
+
let AIFolderMatchWorkspaceRootImpl = class AIFolderMatchWorkspaceRootImpl extends Disposable {
|
|
59
|
+
constructor(_resource, _id, _index, _query, _parent, instantiationService, labelService) {
|
|
60
|
+
super();
|
|
61
|
+
this._resource = _resource;
|
|
62
|
+
this._index = _index;
|
|
63
|
+
this._query = _query;
|
|
64
|
+
this._parent = _parent;
|
|
65
|
+
this.instantiationService = instantiationService;
|
|
66
|
+
this._onChange = this._register(( new Emitter()));
|
|
67
|
+
this.onChange = this._onChange.event;
|
|
68
|
+
this._onDispose = this._register(( new Emitter()));
|
|
69
|
+
this.onDispose = this._onDispose.event;
|
|
70
|
+
this.latestRank = 0;
|
|
71
|
+
this.replacingAll = false;
|
|
72
|
+
this._fileMatches = ( new Map());
|
|
73
|
+
this._id = FOLDER_MATCH_PREFIX + _id;
|
|
74
|
+
this._name = ( new Lazy(() => this.resource ? labelService.getUriBasenameLabel(this.resource) : ''));
|
|
75
|
+
this._unDisposedFileMatches = ( new Map());
|
|
76
|
+
}
|
|
77
|
+
get resource() {
|
|
78
|
+
return this._resource;
|
|
79
|
+
}
|
|
80
|
+
id() {
|
|
81
|
+
return this._id;
|
|
82
|
+
}
|
|
83
|
+
index() {
|
|
84
|
+
return this._index;
|
|
85
|
+
}
|
|
86
|
+
name() {
|
|
87
|
+
return this._name.value;
|
|
88
|
+
}
|
|
89
|
+
count() {
|
|
90
|
+
return this._fileMatches.size;
|
|
91
|
+
}
|
|
92
|
+
doAddFile(fileMatch) {
|
|
93
|
+
this._fileMatches.set(fileMatch.id(), fileMatch);
|
|
94
|
+
}
|
|
95
|
+
createAndConfigureFileMatch(rawFileMatch, searchInstanceID) {
|
|
96
|
+
const fileMatch = this.instantiationService.createInstance(AIFileMatch, this._query.contentPattern, this._query.previewOptions, this._query.maxResults, this, rawFileMatch, this, ( rawFileMatch.resource.toString()) + '_' + ( Date.now().toString()), this.latestRank++);
|
|
97
|
+
fileMatch.createMatches();
|
|
98
|
+
this.doAddFile(fileMatch);
|
|
99
|
+
const disposable = fileMatch.onChange(({ didRemove }) => this.onFileChange(fileMatch, didRemove));
|
|
100
|
+
this._register(fileMatch.onDispose(() => disposable.dispose()));
|
|
101
|
+
return fileMatch;
|
|
102
|
+
}
|
|
103
|
+
isAIContributed() {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
onFileChange(fileMatch, removed = false) {
|
|
107
|
+
let added = false;
|
|
108
|
+
if (!( this._fileMatches.has(fileMatch.id()))) {
|
|
109
|
+
this.doAddFile(fileMatch);
|
|
110
|
+
added = true;
|
|
111
|
+
}
|
|
112
|
+
if (fileMatch.count() === 0) {
|
|
113
|
+
this.doRemoveFile([fileMatch], false, false);
|
|
114
|
+
added = false;
|
|
115
|
+
removed = true;
|
|
116
|
+
}
|
|
117
|
+
this._onChange.fire({ elements: [fileMatch], added: added, removed: removed });
|
|
118
|
+
}
|
|
119
|
+
get hasChildren() {
|
|
120
|
+
return this._fileMatches.size > 0;
|
|
121
|
+
}
|
|
122
|
+
parent() {
|
|
123
|
+
return this._parent;
|
|
124
|
+
}
|
|
125
|
+
matches() {
|
|
126
|
+
return [...( this._fileMatches.values())];
|
|
127
|
+
}
|
|
128
|
+
allDownstreamFileMatches() {
|
|
129
|
+
return [...( this._fileMatches.values())];
|
|
130
|
+
}
|
|
131
|
+
remove(matches) {
|
|
132
|
+
if (!Array.isArray(matches)) {
|
|
133
|
+
matches = [matches];
|
|
134
|
+
}
|
|
135
|
+
const allMatches = getFileMatches(matches);
|
|
136
|
+
this.doRemoveFile(allMatches);
|
|
137
|
+
}
|
|
138
|
+
addFileMatch(raw, silent, searchInstanceID) {
|
|
139
|
+
const added = [];
|
|
140
|
+
const updated = [];
|
|
141
|
+
raw.forEach(rawFileMatch => {
|
|
142
|
+
const fileMatch = this.createAndConfigureFileMatch(rawFileMatch, searchInstanceID);
|
|
143
|
+
added.push(fileMatch);
|
|
144
|
+
});
|
|
145
|
+
const elements = [...added, ...updated];
|
|
146
|
+
if (!silent && elements.length) {
|
|
147
|
+
this._onChange.fire({ elements, added: !!added.length });
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
isEmpty() {
|
|
151
|
+
return this.recursiveFileCount() === 0;
|
|
152
|
+
}
|
|
153
|
+
clear(clearingAll) {
|
|
154
|
+
const changed = this.allDownstreamFileMatches();
|
|
155
|
+
this.disposeMatches();
|
|
156
|
+
this._onChange.fire({ elements: changed, removed: true, added: false, clearingAll });
|
|
157
|
+
}
|
|
158
|
+
get showHighlights() {
|
|
159
|
+
return this._parent.showHighlights;
|
|
160
|
+
}
|
|
161
|
+
get searchModel() {
|
|
162
|
+
return this._searchResult.searchModel;
|
|
163
|
+
}
|
|
164
|
+
get _searchResult() {
|
|
165
|
+
return this._parent.parent();
|
|
166
|
+
}
|
|
167
|
+
get query() {
|
|
168
|
+
return this._query;
|
|
169
|
+
}
|
|
170
|
+
getDownstreamFileMatch(uri) {
|
|
171
|
+
for (const fileMatch of ( this._fileMatches.values())) {
|
|
172
|
+
if (( fileMatch.resource.toString()) === ( uri.toString())) {
|
|
173
|
+
return fileMatch;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
replaceAll() {
|
|
179
|
+
throw ( new Error('Cannot replace in AI search'));
|
|
180
|
+
}
|
|
181
|
+
recursiveFileCount() {
|
|
182
|
+
return this._fileMatches.size;
|
|
183
|
+
}
|
|
184
|
+
doRemoveFile(fileMatches, dispose = true, trigger = true, keepReadonly = false) {
|
|
185
|
+
const removed = [];
|
|
186
|
+
for (const match of fileMatches) {
|
|
187
|
+
if (this._fileMatches.get(match.id())) {
|
|
188
|
+
if (keepReadonly && match.hasReadonlyMatches()) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
this._fileMatches.delete(match.id());
|
|
192
|
+
if (dispose) {
|
|
193
|
+
match.dispose();
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
this._unDisposedFileMatches.set(match.id(), match);
|
|
197
|
+
}
|
|
198
|
+
removed.push(match);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (trigger) {
|
|
202
|
+
this._onChange.fire({ elements: removed, removed: true });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
replace(match) {
|
|
206
|
+
throw ( new Error('Cannot replace in AI search'));
|
|
207
|
+
}
|
|
208
|
+
bindModel(model) {
|
|
209
|
+
}
|
|
210
|
+
unbindNotebookEditorWidget(editor, resource) {
|
|
211
|
+
}
|
|
212
|
+
bindNotebookEditorWidget(editor, resource) {
|
|
213
|
+
return Promise.resolve();
|
|
214
|
+
}
|
|
215
|
+
hasOnlyReadOnlyMatches() {
|
|
216
|
+
return Array.from(( this._fileMatches.values())).every(fm => fm.hasOnlyReadOnlyMatches());
|
|
217
|
+
}
|
|
218
|
+
fileMatchesIterator() {
|
|
219
|
+
return ( this._fileMatches.values());
|
|
220
|
+
}
|
|
221
|
+
folderMatchesIterator() {
|
|
222
|
+
return ( [].values());
|
|
223
|
+
}
|
|
224
|
+
recursiveMatchCount() {
|
|
225
|
+
return this._fileMatches.size;
|
|
226
|
+
}
|
|
227
|
+
disposeMatches() {
|
|
228
|
+
[...( this._fileMatches.values())].forEach((fileMatch) => fileMatch.dispose());
|
|
229
|
+
[...( this._unDisposedFileMatches.values())].forEach((fileMatch) => fileMatch.dispose());
|
|
230
|
+
}
|
|
231
|
+
dispose() {
|
|
232
|
+
this.disposeMatches();
|
|
233
|
+
this._onDispose.fire();
|
|
234
|
+
super.dispose();
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
AIFolderMatchWorkspaceRootImpl = ( __decorate([
|
|
238
|
+
( __param(5, IInstantiationService)),
|
|
239
|
+
( __param(6, ILabelService))
|
|
240
|
+
], AIFolderMatchWorkspaceRootImpl));
|
|
241
|
+
let AIFileMatch = class AIFileMatch extends FileMatchImpl {
|
|
242
|
+
constructor(_query, _previewOptions, _maxResults, _parent, rawMatch, _closestRoot, _id, rank, modelService, replaceService, labelService) {
|
|
243
|
+
super({ pattern: _query }, _previewOptions, _maxResults, _parent, rawMatch, _closestRoot, modelService, replaceService, labelService);
|
|
244
|
+
this._id = _id;
|
|
245
|
+
this.rank = rank;
|
|
246
|
+
}
|
|
247
|
+
id() {
|
|
248
|
+
return FILE_MATCH_PREFIX + this._id;
|
|
249
|
+
}
|
|
250
|
+
getFullRange() {
|
|
251
|
+
let earliestStart = undefined;
|
|
252
|
+
let latestEnd = undefined;
|
|
253
|
+
for (const match of this.matches()) {
|
|
254
|
+
const matchStart = match.range().getStartPosition();
|
|
255
|
+
const matchEnd = match.range().getEndPosition();
|
|
256
|
+
if (earliestStart === undefined) {
|
|
257
|
+
earliestStart = matchStart;
|
|
258
|
+
}
|
|
259
|
+
else if (matchStart.isBefore(earliestStart)) {
|
|
260
|
+
earliestStart = matchStart;
|
|
261
|
+
}
|
|
262
|
+
if (latestEnd === undefined) {
|
|
263
|
+
latestEnd = matchEnd;
|
|
264
|
+
}
|
|
265
|
+
else if (!matchEnd.isBefore(latestEnd)) {
|
|
266
|
+
latestEnd = matchEnd;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
if (earliestStart === undefined || latestEnd === undefined) {
|
|
270
|
+
return undefined;
|
|
271
|
+
}
|
|
272
|
+
return ( new Range(
|
|
273
|
+
earliestStart.lineNumber,
|
|
274
|
+
earliestStart.column,
|
|
275
|
+
latestEnd.lineNumber,
|
|
276
|
+
latestEnd.column
|
|
277
|
+
));
|
|
278
|
+
}
|
|
279
|
+
rangeAsString() {
|
|
280
|
+
const range = this.getFullRange();
|
|
281
|
+
if (!range) {
|
|
282
|
+
return undefined;
|
|
283
|
+
}
|
|
284
|
+
return range.startLineNumber + ':' + range.startColumn + '-' + range.endLineNumber + ':' + range.endColumn;
|
|
285
|
+
}
|
|
286
|
+
name() {
|
|
287
|
+
const range = this.rangeAsString();
|
|
288
|
+
return super.name() + range ? ' ' + range : '';
|
|
289
|
+
}
|
|
290
|
+
createMatches() {
|
|
291
|
+
if (this.rawMatch.results) {
|
|
292
|
+
this.rawMatch.results
|
|
293
|
+
.filter(resultIsMatch)
|
|
294
|
+
.forEach(rawMatch => {
|
|
295
|
+
textSearchResultToMatches(rawMatch, this, true)
|
|
296
|
+
.forEach(m => this.add(m));
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
AIFileMatch = ( __decorate([
|
|
302
|
+
( __param(8, IModelService)),
|
|
303
|
+
( __param(9, IReplaceService)),
|
|
304
|
+
( __param(10, ILabelService))
|
|
305
|
+
], AIFileMatch));
|
|
306
|
+
|
|
307
|
+
export { AIFolderMatchWorkspaceRootImpl, AITextSearchHeadingImpl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
2
|
|
|
3
|
-
var css = ".search-view{display:flex;flex-direction:column;height:100%}.search-view .results{flex-grow:1;min-height:0}.search-view .search-widgets-container{margin:0 12px 0 2px;padding-bottom:6px;padding-top:6px}.search-view .search-widget .toggle-replace-button{align-items:center;background-color:unset;background-position:50%;background-repeat:no-repeat;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:16px}.monaco-workbench .search-view .search-widget .toggle-replace-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .search-view .search-widget .toggle-replace-button:active{background-color:var(--vscode-toolbar-activeBackground)}.search-view .search-widget .replace-container,.search-view .search-widget .search-container{margin-left:18px}.search-view .search-widget .monaco-inputbox>.ibwrapper{height:100%}.search-view .search-widget .monaco-inputbox>.ibwrapper>.mirror,.search-view .search-widget .monaco-inputbox>.ibwrapper>textarea.input{padding:3px 0 3px 6px}.search-view .search-widget .monaco-inputbox>.ibwrapper>textarea.input{height:26px;overflow:initial}.search-view .search-widget .monaco-findInput .monaco-scrollable-element .scrollbar{opacity:0}.search-view .monaco-inputbox>.ibwrapper>textarea.input{scrollbar-width:none}.search-view .monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.search-view .monaco-findInput{display:inline-block;vertical-align:middle;width:100%}.search-view .search-widget .replace-container{display:inline-flex;margin-top:6px;position:relative}.search-view .search-widget .replace-input{display:flex;position:relative;vertical-align:middle;width:auto!important}.search-view .search-widget .replace-input>.controls{position:absolute;right:2px;top:3px}.search-view .search-widget .replace-container.disabled{display:none}.search-view .search-widget .replace-container .monaco-action-bar{height:25px;margin-left:4px}.search-view .query-details{margin:0 0 0 18px;min-height:1em;position:relative}.search-view .query-details .more{color:inherit;cursor:pointer;height:16px;position:absolute;right:-2px;width:25px;z-index:2}.search-view .query-details .file-types{display:none}.search-view .query-details .file-types>.monaco-inputbox{height:25px;width:100%}.search-view .query-details.more .file-types{display:inherit}.search-view .query-details.more .file-types:last-child{padding-bottom:4px}.search-view .query-details.more h4{font-size:11px;font-weight:400;margin:0;overflow:hidden;padding:4px 0 0;text-overflow:ellipsis;white-space:nowrap}.search-view .messages{color:var(--vscode-search-resultsInfoForeground);cursor:default;margin-top:-5px}.search-view .message{overflow-wrap:break-word;padding:0 22px 8px}.search-view .message p:first-child{margin-bottom:0;margin-top:0;padding-bottom:4px;user-select:text;-webkit-user-select:text}.search-view .message a{color:var(--vscode-textLink-foreground)}.search-view .message a:active,.search-view .message a:hover{color:var(--vscode-textLink-activeForeground)}.search-view .filematch,.search-view .foldermatch{display:flex;height:100%;line-height:22px;padding:0;position:relative}.pane-body:not(.wide) .search-view .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .foldermatch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .foldermatch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .foldermatch .monaco-icon-label{flex:1}.pane-body.wide .search-view .filematch .badge,.pane-body.wide .search-view .foldermatch .badge{margin-left:10px}.search-view .linematch{display:flex;line-height:22px;overflow:hidden;position:relative}.search-view .linematch>.match{overflow:hidden;text-overflow:ellipsis;white-space:pre}.search-view .linematch .matchLineNum{display:none;font-size:.9em;margin-left:7px;margin-right:4px;opacity:.7}.search-view .linematch .matchLineNum.show{display:block}.pane-body.wide .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer,.pane-body.wide .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer,.search-view .monaco-list .monaco-list-row .linematch .actionBarContainer{flex:1 0 auto}.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer{flex:0 0 auto}.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .linematch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .filematch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .foldermatch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .linematch .actionBarContainer{text-align:right}.search-view .monaco-list .monaco-list-row .monaco-action-bar{display:none;line-height:1em;padding:0 .8em 0 .4em}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item{margin:0}.search-view .monaco-list .monaco-list-row.focused .monaco-action-bar,.search-view .monaco-list .monaco-list-row.selected .monaco-action-bar,.search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-action-bar{display:inline-block}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item{margin-right:.2em}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label{padding:2px}.monaco-workbench.hc-black .search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label,.monaco-workbench.hc-light .search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label{margin-top:2px}.search-view .monaco-count-badge{margin-right:12px}.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .filematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .foldermatch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .linematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .filematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .foldermatch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .linematch .monaco-count-badge{display:none}.search-view .replace.findInFileMatch{background-color:var(--vscode-diffEditor-removedTextBackground);border:1px solid var(--vscode-diffEditor-removedTextBackground);text-decoration:line-through}.monaco-workbench.hc-dark .search-view .replace.findInFileMatch,.monaco-workbench.hc-light .search-view .replace.findInFileMatch{border:1px dashed var(--vscode-diffEditor-removedTextBackground)}.search-view .findInFileMatch,.search-view .replaceMatch{white-space:pre}.search-view .findInFileMatch{background-color:var(--vscode-editor-findMatchHighlightBackground);border:1px solid var(--vscode-editor-findMatchHighlightBorder)}.monaco-workbench.hc-dark .search-view .findInFileMatch,.monaco-workbench.hc-light .search-view .findInFileMatch{border:1px dashed var(--vscode-editor-findMatchHighlightBorder)}.search-view .replaceMatch{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-workbench.hc-black .search-view .findInFileMatch,.monaco-workbench.hc-black .search-view .replaceMatch,.monaco-workbench.hc-light .search-view .findInFileMatch,.monaco-workbench.hc-light .search-view .replaceMatch{background:none!important;box-sizing:border-box}.search-view .replaceMatch:not(:empty){border:1px solid var(--vscode-diffEditor-insertedLineBackground)}.monaco-workbench.hc-dark .search-view .replaceMatch:not(:empty),.monaco-workbench.hc-light .search-view .replaceMatch:not(:empty){border:1px dashed var(--vscode-diffEditor-insertedLineBackground)}.monaco-workbench.hc-black .search-view .filematch,.monaco-workbench.hc-black .search-view .foldermatch,.monaco-workbench.hc-black .search-view .linematch,.monaco-workbench.hc-light .search-view .filematch,.monaco-workbench.hc-light .search-view .foldermatch,.monaco-workbench.hc-light .search-view .linematch{line-height:20px}.monaco-workbench.vs .search-panel .search-view .monaco-inputbox{border:1px solid transparent}.text-search-provider-messages .providerMessage{padding-top:4px}.text-search-provider-messages .providerMessage .codicon{padding-right:3px;position:relative;top:3px}.monaco-workbench .search-view .monaco-list.element-focused .monaco-list-row.focused.selected:not(.highlighted) .action-label:focus{outline-color:var(--vscode-list-activeSelectionForeground)}.monaco-workbench .search-container .monaco-custom-toggle.disabled{background-color:inherit!important;cursor:default;opacity:.3;pointer-events:none;user-select:none;-webkit-user-select:none}.monaco-workbench .search-container .find-filter-button{box-sizing:border-box;color:inherit;cursor:pointer;float:left;margin-left:2px;user-select:none;-webkit-user-select:none}";
|
|
3
|
+
var css = ".search-view{display:flex;flex-direction:column;height:100%}.search-view .results{flex-grow:1;min-height:0}.search-view .search-widgets-container{margin:0 12px 0 2px;padding-bottom:6px;padding-top:6px}.search-view .search-widget .toggle-replace-button{align-items:center;background-color:unset;background-position:50%;background-repeat:no-repeat;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:16px}.monaco-workbench .search-view .search-widget .toggle-replace-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .search-view .search-widget .toggle-replace-button:active{background-color:var(--vscode-toolbar-activeBackground)}.search-view .search-widget .replace-container,.search-view .search-widget .search-container{margin-left:18px}.search-view .search-widget .monaco-inputbox>.ibwrapper{height:100%}.search-view .search-widget .monaco-inputbox>.ibwrapper>.mirror,.search-view .search-widget .monaco-inputbox>.ibwrapper>textarea.input{padding:3px 0 3px 6px}.search-view .search-widget .monaco-inputbox>.ibwrapper>textarea.input{height:26px;overflow:initial}.search-view .search-widget .monaco-findInput .monaco-scrollable-element .scrollbar{opacity:0}.search-view .monaco-inputbox>.ibwrapper>textarea.input{scrollbar-width:none}.search-view .monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.search-view .monaco-findInput{display:inline-block;vertical-align:middle;width:100%}.search-view .search-widget .replace-container{display:inline-flex;margin-top:6px;position:relative}.search-view .search-widget .replace-input{display:flex;position:relative;vertical-align:middle;width:auto!important}.search-view .search-widget .replace-input>.controls{position:absolute;right:2px;top:3px}.search-view .search-widget .replace-container.disabled{display:none}.search-view .search-widget .replace-container .monaco-action-bar{height:25px;margin-left:4px}.search-view .query-details{margin:0 0 0 18px;min-height:1em;position:relative}.search-view .query-details .more{color:inherit;cursor:pointer;height:16px;position:absolute;right:-2px;width:25px;z-index:2}.search-view .query-details .file-types{display:none}.search-view .query-details .file-types>.monaco-inputbox{height:25px;width:100%}.search-view .query-details.more .file-types{display:inherit}.search-view .query-details.more .file-types:last-child{padding-bottom:4px}.search-view .query-details.more h4{font-size:11px;font-weight:400;margin:0;overflow:hidden;padding:4px 0 0;text-overflow:ellipsis;white-space:nowrap}.search-view .messages{color:var(--vscode-search-resultsInfoForeground);cursor:default;margin-top:-5px}.search-view .message{overflow-wrap:break-word;padding:0 22px 8px}.search-view .message p:first-child{margin-bottom:0;margin-top:0;padding-bottom:4px;user-select:text;-webkit-user-select:text}.search-view .message a{color:var(--vscode-textLink-foreground)}.search-view .message a:active,.search-view .message a:hover{color:var(--vscode-textLink-activeForeground)}.search-view .filematch,.search-view .foldermatch,.search-view .textsearchresult{display:flex;height:100%;line-height:22px;padding:0;position:relative}.search-view .textsearchresult{font-weight:500}.search-view .textsearchresult .monaco-icon-label .codicon{font-size:12px;padding-right:3px;position:relative;top:1px}.pane-body:not(.wide) .search-view .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .foldermatch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .foldermatch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .filematch .monaco-icon-label,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .foldermatch .monaco-icon-label{flex:1}.pane-body.wide .search-view .filematch .badge,.pane-body.wide .search-view .foldermatch .badge{margin-left:10px}.search-view .linematch{display:flex;line-height:22px;overflow:hidden;position:relative}.search-view .linematch>.match{overflow:hidden;text-overflow:ellipsis;white-space:pre}.search-view .linematch .matchLineNum{display:none;font-size:.9em;margin-left:7px;margin-right:4px;opacity:.7}.search-view .linematch .matchLineNum.show{display:block}.pane-body.wide .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer,.pane-body.wide .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer,.search-view .monaco-list .monaco-list-row .linematch .actionBarContainer{flex:1 0 auto}.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer,.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer{flex:0 0 auto}.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .linematch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .filematch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .foldermatch .actionBarContainer,.search-view.actions-right .monaco-list .monaco-list-row .linematch .actionBarContainer{text-align:right}.search-view .monaco-list .monaco-list-row .monaco-action-bar{display:none;line-height:1em;padding:0 .8em 0 .4em}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item{margin:0}.search-view .monaco-list .monaco-list-row.focused .monaco-action-bar,.search-view .monaco-list .monaco-list-row.selected .monaco-action-bar,.search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-action-bar{display:inline-block}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item{margin-right:.2em}.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label{padding:2px}.monaco-workbench.hc-black .search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label,.monaco-workbench.hc-light .search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label{margin-top:2px}.search-view .monaco-count-badge{margin-right:12px}.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .filematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .foldermatch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row.focused .linematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .filematch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .foldermatch .monaco-count-badge,.pane-body:not(.wide) .search-view>.results>.monaco-list .monaco-list-row:hover .linematch .monaco-count-badge{display:none}.search-view .replace.findInFileMatch{background-color:var(--vscode-diffEditor-removedTextBackground);border:1px solid var(--vscode-diffEditor-removedTextBackground);text-decoration:line-through}.monaco-workbench.hc-dark .search-view .replace.findInFileMatch,.monaco-workbench.hc-light .search-view .replace.findInFileMatch{border:1px dashed var(--vscode-diffEditor-removedTextBackground)}.search-view .findInFileMatch,.search-view .replaceMatch{white-space:pre}.search-view .findInFileMatch{background-color:var(--vscode-editor-findMatchHighlightBackground);border:1px solid var(--vscode-editor-findMatchHighlightBorder)}.monaco-workbench.hc-dark .search-view .findInFileMatch,.monaco-workbench.hc-light .search-view .findInFileMatch{border:1px dashed var(--vscode-editor-findMatchHighlightBorder)}.search-view .replaceMatch{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-workbench.hc-black .search-view .findInFileMatch,.monaco-workbench.hc-black .search-view .replaceMatch,.monaco-workbench.hc-light .search-view .findInFileMatch,.monaco-workbench.hc-light .search-view .replaceMatch{background:none!important;box-sizing:border-box}.search-view .replaceMatch:not(:empty){border:1px solid var(--vscode-diffEditor-insertedLineBackground)}.monaco-workbench.hc-dark .search-view .replaceMatch:not(:empty),.monaco-workbench.hc-light .search-view .replaceMatch:not(:empty){border:1px dashed var(--vscode-diffEditor-insertedLineBackground)}.monaco-workbench.hc-black .search-view .filematch,.monaco-workbench.hc-black .search-view .foldermatch,.monaco-workbench.hc-black .search-view .linematch,.monaco-workbench.hc-light .search-view .filematch,.monaco-workbench.hc-light .search-view .foldermatch,.monaco-workbench.hc-light .search-view .linematch{line-height:20px}.monaco-workbench.vs .search-panel .search-view .monaco-inputbox{border:1px solid transparent}.text-search-provider-messages .providerMessage{padding-top:4px}.text-search-provider-messages .providerMessage .codicon{padding-right:3px;position:relative;top:3px}.monaco-workbench .search-view .monaco-list.element-focused .monaco-list-row.focused.selected:not(.highlighted) .action-label:focus{outline-color:var(--vscode-list-activeSelectionForeground)}.monaco-workbench .search-container .monaco-custom-toggle.disabled{background-color:inherit!important;cursor:default;opacity:.3;pointer-events:none;user-select:none;-webkit-user-select:none}.monaco-workbench .search-container .find-filter-button{box-sizing:border-box;color:inherit;cursor:pointer;float:left;margin-left:2px;user-select:none;-webkit-user-select:none}";
|
|
4
4
|
n(css,{});
|
|
5
5
|
|
|
6
6
|
export { css, css as default };
|