@codingame/monaco-vscode-search-service-override 13.1.7 → 14.0.1
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 +18 -20
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +75 -75
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +4 -4
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.js +5 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +61 -60
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +12 -9
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +6 -6
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - search service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,25 +15,23 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.7",
|
|
36
|
-
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "13.1.7"
|
|
18
|
+
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "14.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-3cf6a388-482f-5484-a806-0525ad9ad8af-common": "14.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "14.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-45a408c6-90ed-5d8b-801d-f3f69c7a97f2-common": "14.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-4ead9d5f-54da-5c5a-b093-32be4a84d711-common": "14.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "14.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "14.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "14.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.1",
|
|
29
|
+
"@codingame/monaco-vscode-api": "14.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.1",
|
|
31
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.1",
|
|
32
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "14.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "14.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.1"
|
|
37
35
|
},
|
|
38
36
|
"main": "index.js",
|
|
39
37
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
2
2
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
3
3
|
import { ISearchRange, ITextSearchMatch, IPatternInfo, ITextSearchPreviewOptions, IFileMatch } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search";
|
|
4
|
-
import { ICellViewModel } from "@codingame/monaco-vscode-
|
|
4
|
+
import { ICellViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
5
5
|
import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
6
6
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
7
7
|
import { INotebookCellMatchNoModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/searchNotebookHelpers";
|
|
@@ -29,7 +29,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
29
29
|
this.onCancel = this._onCancel.event;
|
|
30
30
|
options = {
|
|
31
31
|
...{
|
|
32
|
-
ariaLabel: ( localize(
|
|
32
|
+
ariaLabel: ( localize(8781, "input"))
|
|
33
33
|
},
|
|
34
34
|
...options,
|
|
35
35
|
};
|
|
@@ -157,7 +157,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
157
157
|
renderSubcontrols(controlsDiv) {
|
|
158
158
|
this.useSearchInEditorsBox = this._register(( new Toggle({
|
|
159
159
|
icon: Codicon.book,
|
|
160
|
-
title: ( localize(
|
|
160
|
+
title: ( localize(8782, "Search only in Open Editors")),
|
|
161
161
|
isChecked: false,
|
|
162
162
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
163
163
|
...defaultToggleStyles
|
|
@@ -201,7 +201,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
201
201
|
this.useExcludesAndIgnoreFilesBox = this._register(( new Toggle({
|
|
202
202
|
icon: Codicon.exclude,
|
|
203
203
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
204
|
-
title: ( localize(
|
|
204
|
+
title: ( localize(8783, "Use Exclude Settings and Ignore Files")),
|
|
205
205
|
isChecked: true,
|
|
206
206
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
207
207
|
...defaultToggleStyles
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscod
|
|
|
3
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
5
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
6
|
-
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-
|
|
6
|
+
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
7
7
|
import { DefaultQuickAccessFilterValue, IQuickAccessProviderRunOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess";
|
|
8
8
|
import { IQuickPick, IQuickPickItem } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
9
9
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -10,7 +10,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
10
10
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
11
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
12
12
|
import { getSelectionKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
13
|
-
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-
|
|
13
|
+
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
14
14
|
import { DefaultQuickAccessFilterValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess';
|
|
15
15
|
import { QuickInputButtonLocation, QuickInputHideReason } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput';
|
|
16
16
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
@@ -22,7 +22,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
22
22
|
import { QueryBuilder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/queryBuilder';
|
|
23
23
|
import { VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search';
|
|
24
24
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
25
|
-
import { PickerEditorState } from '@codingame/monaco-vscode-
|
|
25
|
+
import { PickerEditorState } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/workbench/browser/quickaccess';
|
|
26
26
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
27
27
|
import { Sequencer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
28
28
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
@@ -86,7 +86,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
86
86
|
picker.buttons = [{
|
|
87
87
|
location: QuickInputButtonLocation.Inline,
|
|
88
88
|
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
89
|
-
tooltip: ( localize(
|
|
89
|
+
tooltip: ( localize(8784, "Open in Search View"))
|
|
90
90
|
}];
|
|
91
91
|
this.editorViewState.reset();
|
|
92
92
|
disposables.add(picker.onDidTriggerButton(async () => {
|
|
@@ -200,7 +200,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
200
200
|
type: 'separator',
|
|
201
201
|
});
|
|
202
202
|
picks.push({
|
|
203
|
-
label: ( localize(
|
|
203
|
+
label: ( localize(8785, "See More Files")),
|
|
204
204
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
205
205
|
accept: async () => {
|
|
206
206
|
await this.moveToSearchViewlet(matches[limit]);
|
|
@@ -217,7 +217,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
217
217
|
description,
|
|
218
218
|
buttons: [{
|
|
219
219
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
220
|
-
tooltip: ( localize(
|
|
220
|
+
tooltip: ( localize(8786, "Open File"))
|
|
221
221
|
}],
|
|
222
222
|
trigger: async () => {
|
|
223
223
|
await this.handleAccept(iFileInstanceMatch, {});
|
|
@@ -229,7 +229,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
229
229
|
const element = results[matchIndex];
|
|
230
230
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
231
231
|
picks.push({
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(8787, "More")),
|
|
233
233
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
234
234
|
accept: async () => {
|
|
235
235
|
await this.moveToSearchViewlet(element);
|
|
@@ -250,7 +250,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
250
250
|
},
|
|
251
251
|
buttons: [{
|
|
252
252
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
253
|
-
tooltip: ( localize(
|
|
253
|
+
tooltip: ( localize(8788, "Open in Search View")),
|
|
254
254
|
}],
|
|
255
255
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
256
256
|
accept: async (keyMods, event) => {
|
|
@@ -288,7 +288,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
288
288
|
if (contentPattern === '') {
|
|
289
289
|
this.searchModel.searchResult.clear();
|
|
290
290
|
return [{
|
|
291
|
-
label: ( localize(
|
|
291
|
+
label: ( localize(8789, "Enter a term to search for across your files."))
|
|
292
292
|
}];
|
|
293
293
|
}
|
|
294
294
|
const conditionalTokenCts = disposables.add(( new CancellationTokenSource()));
|
|
@@ -313,7 +313,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
313
313
|
picks: syncResult,
|
|
314
314
|
additionalPicks: allMatches.asyncResults
|
|
315
315
|
.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
316
|
-
label: ( localize(
|
|
316
|
+
label: ( localize(8790, "No matching results"))
|
|
317
317
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length))
|
|
318
318
|
.then(picks => {
|
|
319
319
|
if (picks.length > 0) {
|
|
@@ -89,7 +89,7 @@ ReplacePreviewModel = ( __decorate([
|
|
|
89
89
|
], ReplacePreviewModel));
|
|
90
90
|
let ReplaceService = class ReplaceService {
|
|
91
91
|
static { ReplaceService_1 = this; }
|
|
92
|
-
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(
|
|
92
|
+
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(8791, "Search and Replace"))); }
|
|
93
93
|
constructor(textFileService, editorService, textModelResolverService, bulkEditorService, labelService, notebookEditorModelResolverService) {
|
|
94
94
|
this.textFileService = textFileService;
|
|
95
95
|
this.editorService = editorService;
|
|
@@ -127,7 +127,7 @@ let ReplaceService = class ReplaceService {
|
|
|
127
127
|
const editor = await this.editorService.openEditor({
|
|
128
128
|
original: { resource: fileMatch.resource },
|
|
129
129
|
modified: { resource: toReplaceResource(fileMatch.resource) },
|
|
130
|
-
label: ( localize(
|
|
130
|
+
label: ( localize(8792, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
131
131
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), { relative: true }),
|
|
132
132
|
options: {
|
|
133
133
|
preserveFocus,
|