@codingame/monaco-vscode-search-service-override 10.1.2 → 10.1.3
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 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.3"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -20,7 +20,7 @@ registerAction2(class ToggleQueryDetailsAction extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: "workbench.action.search.toggleQueryDetails" ,
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(8513, "Toggle Query Details")),
|
|
24
24
|
category,
|
|
25
25
|
keybinding: {
|
|
26
26
|
weight: 200 ,
|
|
@@ -44,7 +44,7 @@ registerAction2(class CloseReplaceAction extends Action2 {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super({
|
|
46
46
|
id: "closeReplaceInFilesWidget" ,
|
|
47
|
-
title: ( localize2(
|
|
47
|
+
title: ( localize2(8514, "Close Replace Widget")),
|
|
48
48
|
category,
|
|
49
49
|
keybinding: {
|
|
50
50
|
weight: 200 ,
|
|
@@ -69,7 +69,7 @@ registerAction2(class ToggleCaseSensitiveCommandAction extends Action2 {
|
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: "toggleSearchCaseSensitive" ,
|
|
72
|
-
title: ( localize2(
|
|
72
|
+
title: ( localize2(8515, "Toggle Case Sensitive")),
|
|
73
73
|
category,
|
|
74
74
|
keybinding: Object.assign({
|
|
75
75
|
weight: 200 ,
|
|
@@ -88,7 +88,7 @@ registerAction2(class ToggleWholeWordCommandAction extends Action2 {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: "toggleSearchWholeWord" ,
|
|
91
|
-
title: ( localize2(
|
|
91
|
+
title: ( localize2(8516, "Toggle Whole Word")),
|
|
92
92
|
keybinding: Object.assign({
|
|
93
93
|
weight: 200 ,
|
|
94
94
|
when: SearchContext.SearchViewFocusedKey,
|
|
@@ -104,7 +104,7 @@ registerAction2(class ToggleRegexCommandAction extends Action2 {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: "toggleSearchRegex" ,
|
|
107
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(8517, "Toggle Regex")),
|
|
108
108
|
keybinding: Object.assign({
|
|
109
109
|
weight: 200 ,
|
|
110
110
|
when: SearchContext.SearchViewFocusedKey,
|
|
@@ -120,7 +120,7 @@ registerAction2(class TogglePreserveCaseAction extends Action2 {
|
|
|
120
120
|
constructor() {
|
|
121
121
|
super({
|
|
122
122
|
id: "toggleSearchPreserveCase" ,
|
|
123
|
-
title: ( localize2(
|
|
123
|
+
title: ( localize2(8518, "Toggle Preserve Case")),
|
|
124
124
|
keybinding: Object.assign({
|
|
125
125
|
weight: 200 ,
|
|
126
126
|
when: SearchContext.SearchViewFocusedKey,
|
|
@@ -136,7 +136,7 @@ registerAction2(class OpenMatchAction extends Action2 {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: "search.action.openResult" ,
|
|
139
|
-
title: ( localize2(
|
|
139
|
+
title: ( localize2(8519, "Open Match")),
|
|
140
140
|
category,
|
|
141
141
|
keybinding: {
|
|
142
142
|
weight: 200 ,
|
|
@@ -168,7 +168,7 @@ registerAction2(class OpenMatchToSideAction extends Action2 {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: "search.action.openResultToSide" ,
|
|
171
|
-
title: ( localize2(
|
|
171
|
+
title: ( localize2(8520, "Open Match To Side")),
|
|
172
172
|
category,
|
|
173
173
|
keybinding: {
|
|
174
174
|
weight: 200 ,
|
|
@@ -192,7 +192,7 @@ registerAction2(class AddCursorsAtSearchResultsAction extends Action2 {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: "addCursorsAtSearchResults" ,
|
|
195
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(8521, "Add Cursors at Search Results")),
|
|
196
196
|
keybinding: {
|
|
197
197
|
weight: 200 ,
|
|
198
198
|
when: ( (ContextKeyExpr.and(SearchContext.SearchViewVisibleKey, SearchContext.FileMatchOrMatchFocusKey))),
|
|
@@ -213,7 +213,7 @@ registerAction2(class FocusNextInputAction extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: "search.focus.nextInputBox" ,
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(8522, "Focus Next Input")),
|
|
217
217
|
category,
|
|
218
218
|
keybinding: {
|
|
219
219
|
weight: 200 ,
|
|
@@ -239,7 +239,7 @@ registerAction2(class FocusPreviousInputAction extends Action2 {
|
|
|
239
239
|
constructor() {
|
|
240
240
|
super({
|
|
241
241
|
id: "search.focus.previousInputBox" ,
|
|
242
|
-
title: ( localize2(
|
|
242
|
+
title: ( localize2(8523, "Focus Previous Input")),
|
|
243
243
|
category,
|
|
244
244
|
keybinding: {
|
|
245
245
|
weight: 200 ,
|
|
@@ -269,7 +269,7 @@ registerAction2(class FocusSearchFromResultsAction extends Action2 {
|
|
|
269
269
|
constructor() {
|
|
270
270
|
super({
|
|
271
271
|
id: "search.action.focusSearchFromResults" ,
|
|
272
|
-
title: ( localize2(
|
|
272
|
+
title: ( localize2(8524, "Focus Search From Results")),
|
|
273
273
|
category,
|
|
274
274
|
keybinding: {
|
|
275
275
|
weight: 200 ,
|
|
@@ -291,7 +291,7 @@ registerAction2(class ToggleSearchOnTypeAction extends Action2 {
|
|
|
291
291
|
constructor() {
|
|
292
292
|
super({
|
|
293
293
|
id: "workbench.action.toggleSearchOnType" ,
|
|
294
|
-
title: ( localize2(
|
|
294
|
+
title: ( localize2(8525, "Toggle Search on Type")),
|
|
295
295
|
category,
|
|
296
296
|
});
|
|
297
297
|
}
|
|
@@ -305,7 +305,7 @@ registerAction2(class FocusSearchListCommandAction extends Action2 {
|
|
|
305
305
|
constructor() {
|
|
306
306
|
super({
|
|
307
307
|
id: "search.action.focusSearchList" ,
|
|
308
|
-
title: ( localize2(
|
|
308
|
+
title: ( localize2(8526, "Focus List")),
|
|
309
309
|
category,
|
|
310
310
|
f1: true
|
|
311
311
|
});
|
|
@@ -318,7 +318,7 @@ registerAction2(class FocusNextSearchResultAction extends Action2 {
|
|
|
318
318
|
constructor() {
|
|
319
319
|
super({
|
|
320
320
|
id: "search.action.focusNextSearchResult" ,
|
|
321
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(8527, "Focus Next Search Result")),
|
|
322
322
|
keybinding: [{
|
|
323
323
|
primary: 62 ,
|
|
324
324
|
weight: 200 ,
|
|
@@ -336,7 +336,7 @@ registerAction2(class FocusPreviousSearchResultAction extends Action2 {
|
|
|
336
336
|
constructor() {
|
|
337
337
|
super({
|
|
338
338
|
id: "search.action.focusPreviousSearchResult" ,
|
|
339
|
-
title: ( localize2(
|
|
339
|
+
title: ( localize2(8528, "Focus Previous Search Result")),
|
|
340
340
|
keybinding: [{
|
|
341
341
|
primary: 1024 | 62 ,
|
|
342
342
|
weight: 200 ,
|
|
@@ -354,7 +354,7 @@ registerAction2(class ReplaceInFilesAction extends Action2 {
|
|
|
354
354
|
constructor() {
|
|
355
355
|
super({
|
|
356
356
|
id: "workbench.action.replaceInFiles" ,
|
|
357
|
-
title: ( localize2(
|
|
357
|
+
title: ( localize2(8529, "Replace in Files")),
|
|
358
358
|
keybinding: [{
|
|
359
359
|
primary: 2048 | 1024 | 38 ,
|
|
360
360
|
weight: 200 ,
|
|
@@ -11,7 +11,7 @@ registerAction2(class TextSearchQuickAccessAction extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: "workbench.action.quickTextSearch" ,
|
|
14
|
-
title: ( localize2(
|
|
14
|
+
title: ( localize2(8535, "Quick Search")),
|
|
15
15
|
category,
|
|
16
16
|
f1: true
|
|
17
17
|
});
|
|
@@ -15,7 +15,7 @@ registerAction2(class ClearSearchHistoryCommandAction extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: "search.action.clearHistory" ,
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(8536, "Clear Search History")),
|
|
19
19
|
category,
|
|
20
20
|
f1: true
|
|
21
21
|
});
|
|
@@ -28,7 +28,7 @@ registerAction2(class CancelSearchAction extends Action2 {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: "search.action.cancel" ,
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(8537, "Cancel Search")),
|
|
32
32
|
icon: searchStopIcon,
|
|
33
33
|
category,
|
|
34
34
|
f1: true,
|
|
@@ -57,7 +57,7 @@ registerAction2(class RefreshAction extends Action2 {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: "search.action.refreshSearchResults" ,
|
|
60
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(8538, "Refresh")),
|
|
61
61
|
icon: searchRefreshIcon,
|
|
62
62
|
precondition: SearchContext.ViewHasSearchPatternKey,
|
|
63
63
|
category,
|
|
@@ -81,7 +81,7 @@ registerAction2(class CollapseDeepestExpandedLevelAction extends Action2 {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: "search.action.collapseSearchResults" ,
|
|
84
|
-
title: ( localize2(
|
|
84
|
+
title: ( localize2(8539, "Collapse All")),
|
|
85
85
|
category,
|
|
86
86
|
icon: searchCollapseAllIcon,
|
|
87
87
|
f1: true,
|
|
@@ -108,7 +108,7 @@ registerAction2(class ExpandAllAction extends Action2 {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: "search.action.expandSearchResults" ,
|
|
111
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(8540, "Expand All")),
|
|
112
112
|
category,
|
|
113
113
|
icon: searchExpandAllIcon,
|
|
114
114
|
f1: true,
|
|
@@ -136,7 +136,7 @@ registerAction2(class ClearSearchResultsAction extends Action2 {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: "search.action.clearSearchResults" ,
|
|
139
|
-
title: ( localize2(
|
|
139
|
+
title: ( localize2(8541, "Clear Search Results")),
|
|
140
140
|
category,
|
|
141
141
|
icon: searchClearIcon,
|
|
142
142
|
f1: true,
|
|
@@ -162,7 +162,7 @@ registerAction2(class ViewAsTreeAction extends Action2 {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
164
164
|
id: "search.action.viewAsTree" ,
|
|
165
|
-
title: ( localize2(
|
|
165
|
+
title: ( localize2(8542, "View as Tree")),
|
|
166
166
|
category,
|
|
167
167
|
icon: searchShowAsList,
|
|
168
168
|
f1: true,
|
|
@@ -192,7 +192,7 @@ registerAction2(class ViewAsListAction extends Action2 {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: "search.action.viewAsList" ,
|
|
195
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(8543, "View as List")),
|
|
196
196
|
category,
|
|
197
197
|
icon: searchShowAsTree,
|
|
198
198
|
f1: true,
|
|
@@ -164,7 +164,7 @@ const extractSearchQueryFromLines = (lines) => {
|
|
|
164
164
|
out += '\\';
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
|
-
throw Error(localize(
|
|
167
|
+
throw Error(localize(10938, "All backslashes in Query string must be escaped (\\\\)"));
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
else {
|
|
@@ -210,16 +210,16 @@ const serializeSearchResultForEditor = (searchResult, rawIncludePattern, rawExcl
|
|
|
210
210
|
throw Error('Internal Error: Expected query, got null');
|
|
211
211
|
}
|
|
212
212
|
const config = contentPatternToSearchConfiguration(searchResult.query, rawIncludePattern, rawExcludePattern, contextLines);
|
|
213
|
-
const filecount = searchResult.fileCount() > 1 ? ( localize(
|
|
214
|
-
const resultcount = searchResult.count() > 1 ? ( localize(
|
|
213
|
+
const filecount = searchResult.fileCount() > 1 ? ( localize(10939, "{0} files", searchResult.fileCount())) : ( localize(10940, "1 file"));
|
|
214
|
+
const resultcount = searchResult.count() > 1 ? ( localize(10941, "{0} results", searchResult.count())) : ( localize(10942, "1 result"));
|
|
215
215
|
const info = [
|
|
216
216
|
searchResult.count()
|
|
217
217
|
? `${resultcount} - ${filecount}`
|
|
218
|
-
: ( localize(
|
|
218
|
+
: ( localize(10943, "No Results")),
|
|
219
219
|
];
|
|
220
220
|
if (limitHit) {
|
|
221
221
|
info.push(( localize(
|
|
222
|
-
|
|
222
|
+
10944,
|
|
223
223
|
"The result set only contains a subset of all matches. Be more specific in your search to narrow down the results."
|
|
224
224
|
)));
|
|
225
225
|
}
|