@codingame/monaco-vscode-bulk-edit-service-override 10.1.1 → 10.1.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-bulk-edit-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -240,7 +240,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
240
240
|
this._labelService = _labelService;
|
|
241
241
|
}
|
|
242
242
|
getWidgetAriaLabel() {
|
|
243
|
-
return ( localize(
|
|
243
|
+
return ( localize(10094, "Bulk Edit"));
|
|
244
244
|
}
|
|
245
245
|
getRole(_element) {
|
|
246
246
|
return 'checkbox';
|
|
@@ -250,7 +250,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
250
250
|
if (element.edit.textEdits.length > 0) {
|
|
251
251
|
if (element.edit.type & 8 && element.edit.newUri) {
|
|
252
252
|
return ( localize(
|
|
253
|
-
|
|
253
|
+
10095,
|
|
254
254
|
"Renaming {0} to {1}, also making text edits",
|
|
255
255
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
256
256
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -258,21 +258,21 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
258
258
|
}
|
|
259
259
|
else if (element.edit.type & 2 ) {
|
|
260
260
|
return ( localize(
|
|
261
|
-
|
|
261
|
+
10096,
|
|
262
262
|
"Creating {0}, also making text edits",
|
|
263
263
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
264
264
|
));
|
|
265
265
|
}
|
|
266
266
|
else if (element.edit.type & 4 ) {
|
|
267
267
|
return ( localize(
|
|
268
|
-
|
|
268
|
+
10097,
|
|
269
269
|
"Deleting {0}, also making text edits",
|
|
270
270
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
271
271
|
));
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
return ( localize(
|
|
275
|
-
|
|
275
|
+
10098,
|
|
276
276
|
"{0}, making text edits",
|
|
277
277
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
278
278
|
));
|
|
@@ -281,7 +281,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
281
281
|
else {
|
|
282
282
|
if (element.edit.type & 8 && element.edit.newUri) {
|
|
283
283
|
return ( localize(
|
|
284
|
-
|
|
284
|
+
10099,
|
|
285
285
|
"Renaming {0} to {1}",
|
|
286
286
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
287
287
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -289,14 +289,14 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
289
289
|
}
|
|
290
290
|
else if (element.edit.type & 2 ) {
|
|
291
291
|
return ( localize(
|
|
292
|
-
|
|
292
|
+
10100,
|
|
293
293
|
"Creating {0}",
|
|
294
294
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
295
295
|
));
|
|
296
296
|
}
|
|
297
297
|
else if (element.edit.type & 4 ) {
|
|
298
298
|
return ( localize(
|
|
299
|
-
|
|
299
|
+
10101,
|
|
300
300
|
"Deleting {0}",
|
|
301
301
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
302
302
|
));
|
|
@@ -306,7 +306,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
306
306
|
if (element instanceof TextEditElement) {
|
|
307
307
|
if (element.selecting.length > 0 && element.inserting.length > 0) {
|
|
308
308
|
return ( localize(
|
|
309
|
-
|
|
309
|
+
10102,
|
|
310
310
|
"line {0}, replacing {1} with {2}",
|
|
311
311
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
312
312
|
element.selecting,
|
|
@@ -315,7 +315,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
315
315
|
}
|
|
316
316
|
else if (element.selecting.length > 0 && element.inserting.length === 0) {
|
|
317
317
|
return ( localize(
|
|
318
|
-
|
|
318
|
+
10103,
|
|
319
319
|
"line {0}, removing {1}",
|
|
320
320
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
321
321
|
element.selecting
|
|
@@ -323,7 +323,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
323
323
|
}
|
|
324
324
|
else if (element.selecting.length === 0 && element.inserting.length > 0) {
|
|
325
325
|
return ( localize(
|
|
326
|
-
|
|
326
|
+
10104,
|
|
327
327
|
"line {0}, inserting {1}",
|
|
328
328
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
329
329
|
element.selecting
|
|
@@ -431,7 +431,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
431
431
|
this._label.setResource({
|
|
432
432
|
resource: element.edit.uri,
|
|
433
433
|
name: ( localize(
|
|
434
|
-
|
|
434
|
+
10105,
|
|
435
435
|
"{0} → {1}",
|
|
436
436
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
437
437
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -439,7 +439,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
439
439
|
}, {
|
|
440
440
|
fileDecorations: { colors: true, badges: false }
|
|
441
441
|
});
|
|
442
|
-
this._details.innerText = ( localize(
|
|
442
|
+
this._details.innerText = ( localize(10106, "(renaming)"));
|
|
443
443
|
}
|
|
444
444
|
else {
|
|
445
445
|
const options = {
|
|
@@ -449,10 +449,10 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
449
449
|
extraClasses: []
|
|
450
450
|
};
|
|
451
451
|
if (element.edit.type & 2 ) {
|
|
452
|
-
this._details.innerText = ( localize(
|
|
452
|
+
this._details.innerText = ( localize(10107, "(creating)"));
|
|
453
453
|
}
|
|
454
454
|
else if (element.edit.type & 4 ) {
|
|
455
|
-
this._details.innerText = ( localize(
|
|
455
|
+
this._details.innerText = ( localize(10108, "(deleting)"));
|
|
456
456
|
options.extraClasses.push('delete');
|
|
457
457
|
}
|
|
458
458
|
else {
|
|
@@ -531,7 +531,7 @@ let TextEditElementTemplate = class TextEditElementTemplate {
|
|
|
531
531
|
let title;
|
|
532
532
|
const { metadata } = element.edit.textEdit;
|
|
533
533
|
if (metadata && metadata.description) {
|
|
534
|
-
title = ( localize(
|
|
534
|
+
title = ( localize(10109, "{0} - {1}", metadata.label, metadata.description));
|
|
535
535
|
}
|
|
536
536
|
else if (metadata) {
|
|
537
537
|
title = metadata.label;
|