@codingame/monaco-vscode-bulk-edit-service-override 11.1.0 → 11.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": "11.1.
|
|
3
|
+
"version": "11.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@11.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -132,15 +132,15 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
132
132
|
const buttonBar = ( (new ButtonBar(buttonsContainer)));
|
|
133
133
|
this._disposables.add(buttonBar);
|
|
134
134
|
const btnConfirm = buttonBar.addButton({ supportIcons: true, ...defaultButtonStyles });
|
|
135
|
-
btnConfirm.label = ( localize(
|
|
135
|
+
btnConfirm.label = ( localize(5280, 'Apply'));
|
|
136
136
|
btnConfirm.onDidClick(() => this.accept(), this, this._disposables);
|
|
137
137
|
const btnCancel = buttonBar.addButton({ ...defaultButtonStyles, secondary: true });
|
|
138
|
-
btnCancel.label = ( localize(
|
|
138
|
+
btnCancel.label = ( localize(5281, 'Discard'));
|
|
139
139
|
btnCancel.onDidClick(() => this.discard(), this, this._disposables);
|
|
140
140
|
this._message = document.createElement('span');
|
|
141
141
|
this._message.className = 'message';
|
|
142
142
|
this._message.innerText = ( localize(
|
|
143
|
-
|
|
143
|
+
5282,
|
|
144
144
|
"Invoke a code action, like rename, to see a preview of its changes here."
|
|
145
145
|
));
|
|
146
146
|
parent.appendChild(this._message);
|
|
@@ -215,14 +215,14 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
215
215
|
let message;
|
|
216
216
|
if (conflicts.length === 1) {
|
|
217
217
|
message = ( localize(
|
|
218
|
-
|
|
218
|
+
5283,
|
|
219
219
|
"Cannot apply refactoring because '{0}' has changed in the meantime.",
|
|
220
220
|
this._labelService.getUriLabel(conflicts[0], { relative: true })
|
|
221
221
|
));
|
|
222
222
|
}
|
|
223
223
|
else {
|
|
224
224
|
message = ( localize(
|
|
225
|
-
|
|
225
|
+
5284,
|
|
226
226
|
"Cannot apply refactoring because {0} other files have changed in the meantime.",
|
|
227
227
|
conflicts.length
|
|
228
228
|
));
|
|
@@ -241,7 +241,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
241
241
|
this._labelService = _labelService;
|
|
242
242
|
}
|
|
243
243
|
getWidgetAriaLabel() {
|
|
244
|
-
return ( localize(
|
|
244
|
+
return ( localize(10174, "Bulk Edit"));
|
|
245
245
|
}
|
|
246
246
|
getRole(_element) {
|
|
247
247
|
return 'checkbox';
|
|
@@ -251,7 +251,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
251
251
|
if (element.edit.textEdits.length > 0) {
|
|
252
252
|
if (element.edit.type & 8 && element.edit.newUri) {
|
|
253
253
|
return ( localize(
|
|
254
|
-
|
|
254
|
+
10175,
|
|
255
255
|
"Renaming {0} to {1}, also making text edits",
|
|
256
256
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
257
257
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -259,21 +259,21 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
259
259
|
}
|
|
260
260
|
else if (element.edit.type & 2 ) {
|
|
261
261
|
return ( localize(
|
|
262
|
-
|
|
262
|
+
10176,
|
|
263
263
|
"Creating {0}, also making text edits",
|
|
264
264
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
265
265
|
));
|
|
266
266
|
}
|
|
267
267
|
else if (element.edit.type & 4 ) {
|
|
268
268
|
return ( localize(
|
|
269
|
-
|
|
269
|
+
10177,
|
|
270
270
|
"Deleting {0}, also making text edits",
|
|
271
271
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
272
272
|
));
|
|
273
273
|
}
|
|
274
274
|
else {
|
|
275
275
|
return ( localize(
|
|
276
|
-
|
|
276
|
+
10178,
|
|
277
277
|
"{0}, making text edits",
|
|
278
278
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
279
279
|
));
|
|
@@ -282,7 +282,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
282
282
|
else {
|
|
283
283
|
if (element.edit.type & 8 && element.edit.newUri) {
|
|
284
284
|
return ( localize(
|
|
285
|
-
|
|
285
|
+
10179,
|
|
286
286
|
"Renaming {0} to {1}",
|
|
287
287
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
288
288
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -290,14 +290,14 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
290
290
|
}
|
|
291
291
|
else if (element.edit.type & 2 ) {
|
|
292
292
|
return ( localize(
|
|
293
|
-
|
|
293
|
+
10180,
|
|
294
294
|
"Creating {0}",
|
|
295
295
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
296
296
|
));
|
|
297
297
|
}
|
|
298
298
|
else if (element.edit.type & 4 ) {
|
|
299
299
|
return ( localize(
|
|
300
|
-
|
|
300
|
+
10181,
|
|
301
301
|
"Deleting {0}",
|
|
302
302
|
this._labelService.getUriLabel(element.edit.uri, { relative: true })
|
|
303
303
|
));
|
|
@@ -307,7 +307,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
307
307
|
if (element instanceof TextEditElement) {
|
|
308
308
|
if (element.selecting.length > 0 && element.inserting.length > 0) {
|
|
309
309
|
return ( localize(
|
|
310
|
-
|
|
310
|
+
10182,
|
|
311
311
|
"line {0}, replacing {1} with {2}",
|
|
312
312
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
313
313
|
element.selecting,
|
|
@@ -316,7 +316,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
316
316
|
}
|
|
317
317
|
else if (element.selecting.length > 0 && element.inserting.length === 0) {
|
|
318
318
|
return ( localize(
|
|
319
|
-
|
|
319
|
+
10183,
|
|
320
320
|
"line {0}, removing {1}",
|
|
321
321
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
322
322
|
element.selecting
|
|
@@ -324,7 +324,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
324
324
|
}
|
|
325
325
|
else if (element.selecting.length === 0 && element.inserting.length > 0) {
|
|
326
326
|
return ( localize(
|
|
327
|
-
|
|
327
|
+
10184,
|
|
328
328
|
"line {0}, inserting {1}",
|
|
329
329
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
330
330
|
element.selecting
|
|
@@ -432,7 +432,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
432
432
|
this._label.setResource({
|
|
433
433
|
resource: element.edit.uri,
|
|
434
434
|
name: ( localize(
|
|
435
|
-
|
|
435
|
+
10185,
|
|
436
436
|
"{0} → {1}",
|
|
437
437
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
438
438
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -440,7 +440,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
440
440
|
}, {
|
|
441
441
|
fileDecorations: { colors: true, badges: false }
|
|
442
442
|
});
|
|
443
|
-
this._details.innerText = ( localize(
|
|
443
|
+
this._details.innerText = ( localize(10186, "(renaming)"));
|
|
444
444
|
}
|
|
445
445
|
else {
|
|
446
446
|
const options = {
|
|
@@ -450,10 +450,10 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
450
450
|
extraClasses: []
|
|
451
451
|
};
|
|
452
452
|
if (element.edit.type & 2 ) {
|
|
453
|
-
this._details.innerText = ( localize(
|
|
453
|
+
this._details.innerText = ( localize(10187, "(creating)"));
|
|
454
454
|
}
|
|
455
455
|
else if (element.edit.type & 4 ) {
|
|
456
|
-
this._details.innerText = ( localize(
|
|
456
|
+
this._details.innerText = ( localize(10188, "(deleting)"));
|
|
457
457
|
options.extraClasses.push('delete');
|
|
458
458
|
}
|
|
459
459
|
else {
|
|
@@ -532,7 +532,7 @@ let TextEditElementTemplate = class TextEditElementTemplate {
|
|
|
532
532
|
let title;
|
|
533
533
|
const { metadata } = element.edit.textEdit;
|
|
534
534
|
if (metadata && metadata.description) {
|
|
535
|
-
title = ( localize(
|
|
535
|
+
title = ( localize(10189, "{0} - {1}", metadata.label, metadata.description));
|
|
536
536
|
}
|
|
537
537
|
else if (metadata) {
|
|
538
538
|
title = metadata.label;
|