@codingame/monaco-vscode-bulk-edit-service-override 9.0.0 → 9.0.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 +2 -2
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +17 -17
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +5 -5
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +1 -1
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +16 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-bulk-edit-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.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@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -68,24 +68,24 @@ let BulkEdit = class BulkEdit {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
if (this._edits.length === 0) {
|
|
71
|
-
return ( localize(
|
|
71
|
+
return ( localize(2102, "Made no edits"));
|
|
72
72
|
}
|
|
73
73
|
else if (otherResources.size === 0) {
|
|
74
74
|
if (textEditCount > 1 && textEditResources.size > 1) {
|
|
75
75
|
return ( localize(
|
|
76
|
-
|
|
76
|
+
2103,
|
|
77
77
|
"Made {0} text edits in {1} files",
|
|
78
78
|
textEditCount,
|
|
79
79
|
textEditResources.size
|
|
80
80
|
));
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
return ( localize(
|
|
83
|
+
return ( localize(2104, "Made {0} text edits in one file", textEditCount));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
87
|
return ( localize(
|
|
88
|
-
|
|
88
|
+
2105,
|
|
89
89
|
"Made {0} text edits in {1} files, also created or deleted {2} files",
|
|
90
90
|
textEditCount,
|
|
91
91
|
textEditResources.size,
|
|
@@ -134,12 +134,12 @@ let BulkEdit = class BulkEdit {
|
|
|
134
134
|
}
|
|
135
135
|
async _performFileEdits(edits, undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress) {
|
|
136
136
|
this._logService.debug('_performFileEdits', JSON.stringify(edits));
|
|
137
|
-
const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(
|
|
137
|
+
const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(2106, "Workspace Edit")), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
|
|
138
138
|
return await model.apply();
|
|
139
139
|
}
|
|
140
140
|
async _performTextEdits(edits, undoRedoGroup, undoRedoSource, progress) {
|
|
141
141
|
this._logService.debug('_performTextEdits', JSON.stringify(edits));
|
|
142
|
-
const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(
|
|
142
|
+
const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(2106, "Workspace Edit")), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
|
|
143
143
|
return await model.apply();
|
|
144
144
|
}
|
|
145
145
|
async _performCellEdits(edits, undoRedoGroup, undoRedoSource, progress) {
|
|
@@ -177,7 +177,7 @@ let BulkEditService = class BulkEditService {
|
|
|
177
177
|
async apply(editsIn, options) {
|
|
178
178
|
let edits = liftEdits(Array.isArray(editsIn) ? editsIn : editsIn.edits);
|
|
179
179
|
if (edits.length === 0) {
|
|
180
|
-
return { ariaSummary: ( localize(
|
|
180
|
+
return { ariaSummary: ( localize(2107, "Made no edits")), isApplied: false };
|
|
181
181
|
}
|
|
182
182
|
if (this._previewHandler && (options?.showPreview || ( (edits.some(value => value.metadata?.needsConfirmation))))) {
|
|
183
183
|
edits = await this._previewHandler(edits, options);
|
|
@@ -248,25 +248,25 @@ let BulkEditService = class BulkEditService {
|
|
|
248
248
|
let primaryButton;
|
|
249
249
|
switch (reason) {
|
|
250
250
|
case ShutdownReason.CLOSE:
|
|
251
|
-
message = ( localize(
|
|
252
|
-
primaryButton = ( localize(
|
|
251
|
+
message = ( localize(2108, "Are you sure you want to close the window?"));
|
|
252
|
+
primaryButton = ( localize(2109, "&&Close Window"));
|
|
253
253
|
break;
|
|
254
254
|
case ShutdownReason.LOAD:
|
|
255
|
-
message = ( localize(
|
|
256
|
-
primaryButton = ( localize(
|
|
255
|
+
message = ( localize(2110, "Are you sure you want to change the workspace?"));
|
|
256
|
+
primaryButton = ( localize(2111, "Change &&Workspace"));
|
|
257
257
|
break;
|
|
258
258
|
case ShutdownReason.RELOAD:
|
|
259
|
-
message = ( localize(
|
|
260
|
-
primaryButton = ( localize(
|
|
259
|
+
message = ( localize(2112, "Are you sure you want to reload the window?"));
|
|
260
|
+
primaryButton = ( localize(2113, "&&Reload Window"));
|
|
261
261
|
break;
|
|
262
262
|
default:
|
|
263
|
-
message = ( localize(
|
|
264
|
-
primaryButton = ( localize(
|
|
263
|
+
message = ( localize(2114, "Are you sure you want to quit?"));
|
|
264
|
+
primaryButton = ( localize(2115, "&&Quit"));
|
|
265
265
|
break;
|
|
266
266
|
}
|
|
267
267
|
const result = await this._dialogService.confirm({
|
|
268
268
|
message,
|
|
269
|
-
detail: ( localize(
|
|
269
|
+
detail: ( localize(2116, "'{0}' is in progress.", label || ( localize(2117, "File operation")))),
|
|
270
270
|
primaryButton
|
|
271
271
|
});
|
|
272
272
|
return !result.confirmed;
|
|
@@ -287,7 +287,7 @@ const autoSaveSetting = 'files.refactoring.autoSave';
|
|
|
287
287
|
properties: {
|
|
288
288
|
[autoSaveSetting]: {
|
|
289
289
|
description: ( localize(
|
|
290
|
-
|
|
290
|
+
2118,
|
|
291
291
|
"Controls if files that were part of a refactoring are saved automatically"
|
|
292
292
|
)),
|
|
293
293
|
default: true,
|
|
@@ -96,12 +96,12 @@ let BulkEditPreviewContribution = class BulkEditPreviewContribution {
|
|
|
96
96
|
if (view.hasInput()) {
|
|
97
97
|
const { confirmed } = await this._dialogService.confirm({
|
|
98
98
|
type: Severity$1.Info,
|
|
99
|
-
message: ( localize(
|
|
99
|
+
message: ( localize(2119, "Another refactoring is being previewed.")),
|
|
100
100
|
detail: ( localize(
|
|
101
|
-
|
|
101
|
+
2120,
|
|
102
102
|
"Press 'Continue' to discard the previous refactoring and continue with the current refactoring."
|
|
103
103
|
)),
|
|
104
|
-
primaryButton: ( localize(
|
|
104
|
+
primaryButton: ( localize(2121, "&&Continue"))
|
|
105
105
|
});
|
|
106
106
|
if (!confirmed) {
|
|
107
107
|
return [];
|
|
@@ -142,8 +142,8 @@ registerAction2(class ApplyAction extends Action2 {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: 'refactorPreview.apply',
|
|
145
|
-
title: ( localize2(
|
|
146
|
-
category: ( localize2(
|
|
145
|
+
title: ( localize2(2122, "Apply Refactoring")),
|
|
146
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
147
147
|
icon: Codicon.check,
|
|
148
148
|
precondition: ( (ContextKeyExpr.and(BulkEditPreviewContribution.ctxEnabled, BulkEditPane.ctxHasCheckedChanges))),
|
|
149
149
|
menu: [{
|
|
@@ -170,8 +170,8 @@ registerAction2(class DiscardAction extends Action2 {
|
|
|
170
170
|
constructor() {
|
|
171
171
|
super({
|
|
172
172
|
id: 'refactorPreview.discard',
|
|
173
|
-
title: ( localize2(
|
|
174
|
-
category: ( localize2(
|
|
173
|
+
title: ( localize2(2124, "Discard Refactoring")),
|
|
174
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
175
175
|
icon: Codicon.clearAll,
|
|
176
176
|
precondition: BulkEditPreviewContribution.ctxEnabled,
|
|
177
177
|
menu: [{
|
|
@@ -190,8 +190,8 @@ registerAction2(class ToggleAction extends Action2 {
|
|
|
190
190
|
constructor() {
|
|
191
191
|
super({
|
|
192
192
|
id: 'refactorPreview.toggleCheckedState',
|
|
193
|
-
title: ( localize2(
|
|
194
|
-
category: ( localize2(
|
|
193
|
+
title: ( localize2(2125, "Toggle Change")),
|
|
194
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
195
195
|
precondition: BulkEditPreviewContribution.ctxEnabled,
|
|
196
196
|
keybinding: {
|
|
197
197
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -214,8 +214,8 @@ registerAction2(class GroupByFile extends Action2 {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
super({
|
|
216
216
|
id: 'refactorPreview.groupByFile',
|
|
217
|
-
title: ( localize2(
|
|
218
|
-
category: ( localize2(
|
|
217
|
+
title: ( localize2(2126, "Group Changes By File")),
|
|
218
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
219
219
|
icon: Codicon.ungroupByRefType,
|
|
220
220
|
precondition: ( (ContextKeyExpr.and(
|
|
221
221
|
BulkEditPane.ctxHasCategories,
|
|
@@ -243,8 +243,8 @@ registerAction2(class GroupByType extends Action2 {
|
|
|
243
243
|
constructor() {
|
|
244
244
|
super({
|
|
245
245
|
id: 'refactorPreview.groupByType',
|
|
246
|
-
title: ( localize2(
|
|
247
|
-
category: ( localize2(
|
|
246
|
+
title: ( localize2(2127, "Group Changes By Type")),
|
|
247
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
248
248
|
icon: Codicon.groupByRefType,
|
|
249
249
|
precondition: ( (ContextKeyExpr.and(
|
|
250
250
|
BulkEditPane.ctxHasCategories,
|
|
@@ -269,8 +269,8 @@ registerAction2(class ToggleGrouping extends Action2 {
|
|
|
269
269
|
constructor() {
|
|
270
270
|
super({
|
|
271
271
|
id: 'refactorPreview.toggleGrouping',
|
|
272
|
-
title: ( localize2(
|
|
273
|
-
category: ( localize2(
|
|
272
|
+
title: ( localize2(2127, "Group Changes By Type")),
|
|
273
|
+
category: ( localize2(2123, "Refactor Preview")),
|
|
274
274
|
icon: Codicon.listTree,
|
|
275
275
|
toggled: ( (BulkEditPane.ctxGroupByFile.negate())),
|
|
276
276
|
precondition: ( (ContextKeyExpr.and(BulkEditPane.ctxHasCategories, BulkEditPreviewContribution.ctxEnabled))),
|
|
@@ -287,10 +287,10 @@ registerAction2(class ToggleGrouping extends Action2 {
|
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
registerWorkbenchContribution2(BulkEditPreviewContribution.ID, BulkEditPreviewContribution, WorkbenchPhase.BlockRestore);
|
|
290
|
-
const refactorPreviewViewIcon = registerIcon('refactor-preview-view-icon', Codicon.lightbulb, ( localize(
|
|
290
|
+
const refactorPreviewViewIcon = registerIcon('refactor-preview-view-icon', Codicon.lightbulb, ( localize(2128, 'View icon of the refactor preview view.')));
|
|
291
291
|
const container = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
292
292
|
id: BulkEditPane.ID,
|
|
293
|
-
title: ( localize2(
|
|
293
|
+
title: ( localize2(2129, "Refactor Preview")),
|
|
294
294
|
hideIfEmpty: true,
|
|
295
295
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
296
296
|
ViewPaneContainer,
|
|
@@ -301,7 +301,7 @@ const container = ( (Registry.as(Extensions.ViewContainersRegistry))).registerVi
|
|
|
301
301
|
}, ViewContainerLocation.Panel);
|
|
302
302
|
( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
|
|
303
303
|
id: BulkEditPane.ID,
|
|
304
|
-
name: ( localize2(
|
|
304
|
+
name: ( localize2(2129, "Refactor Preview")),
|
|
305
305
|
when: BulkEditPreviewContribution.ctxEnabled,
|
|
306
306
|
ctorDescriptor: ( (new SyncDescriptor(BulkEditPane))),
|
|
307
307
|
containerIcon: refactorPreviewViewIcon,
|
|
@@ -138,15 +138,15 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
138
138
|
const buttonBar = ( (new ButtonBar(buttonsContainer)));
|
|
139
139
|
this._disposables.add(buttonBar);
|
|
140
140
|
const btnConfirm = buttonBar.addButton({ supportIcons: true, ...defaultButtonStyles });
|
|
141
|
-
btnConfirm.label = ( localize(
|
|
141
|
+
btnConfirm.label = ( localize(5266, 'Apply'));
|
|
142
142
|
btnConfirm.onDidClick(() => this.accept(), this, this._disposables);
|
|
143
143
|
const btnCancel = buttonBar.addButton({ ...defaultButtonStyles, secondary: true });
|
|
144
|
-
btnCancel.label = ( localize(
|
|
144
|
+
btnCancel.label = ( localize(5267, 'Discard'));
|
|
145
145
|
btnCancel.onDidClick(() => this.discard(), this, this._disposables);
|
|
146
146
|
this._message = document.createElement('span');
|
|
147
147
|
this._message.className = 'message';
|
|
148
148
|
this._message.innerText = ( localize(
|
|
149
|
-
|
|
149
|
+
5268,
|
|
150
150
|
"Invoke a code action, like rename, to see a preview of its changes here."
|
|
151
151
|
));
|
|
152
152
|
parent.appendChild(this._message);
|
|
@@ -221,14 +221,14 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
221
221
|
let message;
|
|
222
222
|
if (conflicts.length === 1) {
|
|
223
223
|
message = ( localize(
|
|
224
|
-
|
|
224
|
+
5269,
|
|
225
225
|
"Cannot apply refactoring because '{0}' has changed in the meantime.",
|
|
226
226
|
this._labelService.getUriLabel(conflicts[0], { relative: true })
|
|
227
227
|
));
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
230
230
|
message = ( localize(
|
|
231
|
-
|
|
231
|
+
5270,
|
|
232
232
|
"Cannot apply refactoring because {0} other files have changed in the meantime.",
|
|
233
233
|
conflicts.length
|
|
234
234
|
));
|
|
@@ -102,7 +102,7 @@ class BulkFileOperation {
|
|
|
102
102
|
}
|
|
103
103
|
class BulkCategory {
|
|
104
104
|
static { this._defaultMetadata = ( (Object.freeze({
|
|
105
|
-
label: ( localize(
|
|
105
|
+
label: ( localize(10007, "Other")),
|
|
106
106
|
icon: Codicon.symbolFile,
|
|
107
107
|
needsConfirmation: false
|
|
108
108
|
}))); }
|
|
@@ -240,7 +240,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
240
240
|
this._labelService = _labelService;
|
|
241
241
|
}
|
|
242
242
|
getWidgetAriaLabel() {
|
|
243
|
-
return ( localize(
|
|
243
|
+
return ( localize(10008, "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 & BulkFileOperationType.Rename && element.edit.newUri) {
|
|
252
252
|
return ( localize(
|
|
253
|
-
|
|
253
|
+
10009,
|
|
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 & BulkFileOperationType.Create) {
|
|
260
260
|
return ( localize(
|
|
261
|
-
|
|
261
|
+
10010,
|
|
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 & BulkFileOperationType.Delete) {
|
|
267
267
|
return ( localize(
|
|
268
|
-
|
|
268
|
+
10011,
|
|
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
|
+
10012,
|
|
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 & BulkFileOperationType.Rename && element.edit.newUri) {
|
|
283
283
|
return ( localize(
|
|
284
|
-
|
|
284
|
+
10013,
|
|
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 & BulkFileOperationType.Create) {
|
|
291
291
|
return ( localize(
|
|
292
|
-
|
|
292
|
+
10014,
|
|
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 & BulkFileOperationType.Delete) {
|
|
298
298
|
return ( localize(
|
|
299
|
-
|
|
299
|
+
10015,
|
|
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
|
+
10016,
|
|
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
|
+
10017,
|
|
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
|
+
10018,
|
|
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
|
+
10019,
|
|
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(10020, "(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 & BulkFileOperationType.Create) {
|
|
452
|
-
this._details.innerText = ( localize(
|
|
452
|
+
this._details.innerText = ( localize(10021, "(creating)"));
|
|
453
453
|
}
|
|
454
454
|
else if (element.edit.type & BulkFileOperationType.Delete) {
|
|
455
|
-
this._details.innerText = ( localize(
|
|
455
|
+
this._details.innerText = ( localize(10022, "(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(10023, "{0} - {1}", metadata.label, metadata.description));
|
|
535
535
|
}
|
|
536
536
|
else if (metadata) {
|
|
537
537
|
title = metadata.label;
|