@codingame/monaco-vscode-search-service-override 7.1.0 → 7.1.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 +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +4 -5
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +15 -12
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +3 -10
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +114 -192
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +4 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +18 -19
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +5 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +4 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +2 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +3 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +22 -24
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +3 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +17 -22
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +72 -139
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +9 -10
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +21 -22
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +11 -13
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +7 -9
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +7 -9
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@7.1.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -5,7 +5,7 @@ import { Widget } from 'vscode/vscode/vs/base/browser/ui/widget';
|
|
|
5
5
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
6
6
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
7
|
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
8
|
-
import {
|
|
8
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
9
9
|
import { ContextScopedHistoryInputBox } from 'vscode/vscode/vs/platform/history/browser/contextScopedHistoryWidget';
|
|
10
10
|
import { showHistoryKeybindingHint } from 'vscode/vscode/vs/platform/history/browser/historyWidgetKeybindingHint';
|
|
11
11
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -14,7 +14,6 @@ import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/
|
|
|
14
14
|
import { defaultToggleStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
15
15
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
16
16
|
|
|
17
|
-
const _moduleId = "vs/workbench/contrib/search/browser/patternInputWidget";
|
|
18
17
|
let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
19
18
|
static { this.OPTION_CHANGE = 'optionChange'; }
|
|
20
19
|
constructor(parent, contextViewProvider, options, contextKeyService, configurationService, keybindingService) {
|
|
@@ -29,7 +28,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
29
28
|
this.onCancel = this._onCancel.event;
|
|
30
29
|
options = {
|
|
31
30
|
...{
|
|
32
|
-
ariaLabel: (
|
|
31
|
+
ariaLabel: ( localize(10767, "input"))
|
|
33
32
|
},
|
|
34
33
|
...options,
|
|
35
34
|
};
|
|
@@ -156,7 +155,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
156
155
|
renderSubcontrols(controlsDiv) {
|
|
157
156
|
this.useSearchInEditorsBox = this._register(( (new Toggle({
|
|
158
157
|
icon: Codicon.book,
|
|
159
|
-
title: (
|
|
158
|
+
title: ( localize(10768, "Search only in Open Editors")),
|
|
160
159
|
isChecked: false,
|
|
161
160
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
162
161
|
...defaultToggleStyles
|
|
@@ -200,7 +199,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
200
199
|
this.useExcludesAndIgnoreFilesBox = this._register(( (new Toggle({
|
|
201
200
|
icon: Codicon.exclude,
|
|
202
201
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
203
|
-
title: (
|
|
202
|
+
title: ( localize(10769, "Use Exclude Settings and Ignore Files")),
|
|
204
203
|
isChecked: true,
|
|
205
204
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
206
205
|
...defaultToggleStyles
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -4,14 +4,14 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
4
4
|
import { ResourceSet } from 'vscode/vscode/vs/base/common/map';
|
|
5
5
|
import { basenameOrAuthority, dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
6
6
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
7
|
-
import {
|
|
7
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
8
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
10
|
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
11
11
|
import { getSelectionKeyboardEvent } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
12
12
|
import { PickerQuickAccessProvider, TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
13
13
|
import { DefaultQuickAccessFilterValue } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
14
|
-
import { QuickInputHideReason } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
14
|
+
import { QuickInputButtonLocation, QuickInputHideReason } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
15
15
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
16
16
|
import { searchDetailsIcon, searchOpenInFileIcon, searchActivityBarIcon } from '../searchIcons.js';
|
|
17
17
|
import { SearchModel, SearchModelLocation, searchComparer } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
|
|
@@ -25,8 +25,8 @@ import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
|
25
25
|
import { PickerEditorState } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
26
26
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
27
27
|
import { Sequencer } from 'vscode/vscode/vs/base/common/async';
|
|
28
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
28
29
|
|
|
29
|
-
const _moduleId = "vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess";
|
|
30
30
|
const TEXT_SEARCH_QUICK_ACCESS_PREFIX = '%';
|
|
31
31
|
const DEFAULT_TEXT_QUERY_BUILDER_OPTIONS = {
|
|
32
32
|
_reason: 'quickAccessSearch',
|
|
@@ -80,10 +80,13 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
80
80
|
if (TEXT_SEARCH_QUICK_ACCESS_PREFIX.length < picker.value.length) {
|
|
81
81
|
picker.valueSelection = [TEXT_SEARCH_QUICK_ACCESS_PREFIX.length, picker.value.length];
|
|
82
82
|
}
|
|
83
|
-
picker.
|
|
84
|
-
|
|
83
|
+
picker.buttons = [{
|
|
84
|
+
location: QuickInputButtonLocation.Inline,
|
|
85
|
+
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
86
|
+
tooltip: ( localize(8421, "See in Search Panel"))
|
|
87
|
+
}];
|
|
85
88
|
this.editorViewState.reset();
|
|
86
|
-
disposables.add(picker.
|
|
89
|
+
disposables.add(picker.onDidTriggerButton(() => {
|
|
87
90
|
if (this.searchModel.searchResult.count() > 0) {
|
|
88
91
|
this.moveToSearchViewlet(undefined);
|
|
89
92
|
}
|
|
@@ -194,7 +197,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
194
197
|
type: 'separator',
|
|
195
198
|
});
|
|
196
199
|
picks.push({
|
|
197
|
-
label: (
|
|
200
|
+
label: ( localize(8422, "See More Files")),
|
|
198
201
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
199
202
|
accept: async () => {
|
|
200
203
|
this.moveToSearchViewlet(matches[limit]);
|
|
@@ -211,7 +214,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
211
214
|
description,
|
|
212
215
|
buttons: [{
|
|
213
216
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
214
|
-
tooltip: (
|
|
217
|
+
tooltip: ( localize(8423, "Open File"))
|
|
215
218
|
}],
|
|
216
219
|
trigger: async () => {
|
|
217
220
|
await this.handleAccept(fileMatch, {});
|
|
@@ -223,7 +226,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
223
226
|
const element = results[matchIndex];
|
|
224
227
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
225
228
|
picks.push({
|
|
226
|
-
label: (
|
|
229
|
+
label: ( localize(8424, "More")),
|
|
227
230
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
228
231
|
accept: async () => {
|
|
229
232
|
this.moveToSearchViewlet(element);
|
|
@@ -244,7 +247,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
244
247
|
},
|
|
245
248
|
buttons: [{
|
|
246
249
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
247
|
-
tooltip: (
|
|
250
|
+
tooltip: ( localize(8425, "See in Search Panel")),
|
|
248
251
|
}],
|
|
249
252
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
250
253
|
accept: async (keyMods, event) => {
|
|
@@ -282,7 +285,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
282
285
|
if (contentPattern === '') {
|
|
283
286
|
this.searchModel.searchResult.clear();
|
|
284
287
|
return [{
|
|
285
|
-
label: (
|
|
288
|
+
label: ( localize(8426, "Enter a term to search for across your files."))
|
|
286
289
|
}];
|
|
287
290
|
}
|
|
288
291
|
const conditionalTokenCts = disposables.add(( (new CancellationTokenSource())));
|
|
@@ -307,7 +310,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
307
310
|
picks: syncResult,
|
|
308
311
|
additionalPicks: allMatches.asyncResults
|
|
309
312
|
.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
310
|
-
label: (
|
|
313
|
+
label: ( localize(8427, "No matching results"))
|
|
311
314
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length))
|
|
312
315
|
.then(picks => {
|
|
313
316
|
if (picks.length > 0) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace.service';
|
|
@@ -24,7 +24,6 @@ import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/note
|
|
|
24
24
|
import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
|
|
25
25
|
|
|
26
26
|
var ReplaceService_1;
|
|
27
|
-
const _moduleId = "vs/workbench/contrib/search/browser/replaceService";
|
|
28
27
|
const REPLACE_PREVIEW = 'replacePreview';
|
|
29
28
|
const toReplaceResource = (fileResource) => {
|
|
30
29
|
return fileResource.with({ scheme: Schemas.internal, fragment: REPLACE_PREVIEW, query: JSON.stringify({ scheme: fileResource.scheme }) });
|
|
@@ -88,7 +87,7 @@ ReplacePreviewModel = ( (__decorate([
|
|
|
88
87
|
], ReplacePreviewModel)));
|
|
89
88
|
let ReplaceService = class ReplaceService {
|
|
90
89
|
static { ReplaceService_1 = this; }
|
|
91
|
-
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', (
|
|
90
|
+
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(3367, "Search and Replace"))); }
|
|
92
91
|
constructor(textFileService, editorService, textModelResolverService, bulkEditorService, labelService, notebookEditorModelResolverService) {
|
|
93
92
|
this.textFileService = textFileService;
|
|
94
93
|
this.editorService = editorService;
|
|
@@ -126,13 +125,7 @@ let ReplaceService = class ReplaceService {
|
|
|
126
125
|
const editor = await this.editorService.openEditor({
|
|
127
126
|
original: { resource: fileMatch.resource },
|
|
128
127
|
modified: { resource: toReplaceResource(fileMatch.resource) },
|
|
129
|
-
label: (
|
|
130
|
-
_moduleId,
|
|
131
|
-
1,
|
|
132
|
-
"{0} ↔ {1} (Replace Preview)",
|
|
133
|
-
fileMatch.name(),
|
|
134
|
-
fileMatch.name()
|
|
135
|
-
)),
|
|
128
|
+
label: ( localize(3368, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
136
129
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), { relative: true }),
|
|
137
130
|
options: {
|
|
138
131
|
preserveFocus,
|