@codingame/monaco-vscode-bulk-edit-service-override 36.2.6 → 37.0.0

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": "36.2.6",
3
+ "version": "37.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - bulk-edit service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "36.2.6"
18
+ "@codingame/monaco-vscode-api": "37.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -83,21 +83,21 @@ let BulkEdit = class BulkEdit {
83
83
  }
84
84
  }
85
85
  if (this._edits.length === 0) {
86
- return localize(4957, "Made no edits");
86
+ return localize(5316, "Made no edits");
87
87
  } else if (otherResources.size === 0) {
88
88
  if (textEditCount > 1 && textEditResources.size > 1) {
89
89
  return localize(
90
- 4958,
90
+ 5317,
91
91
  "Made {0} text edits in {1} files",
92
92
  textEditCount,
93
93
  textEditResources.size
94
94
  );
95
95
  } else {
96
- return localize(4959, "Made {0} text edits in one file", textEditCount);
96
+ return localize(5318, "Made {0} text edits in one file", textEditCount);
97
97
  }
98
98
  } else {
99
99
  return localize(
100
- 4960,
100
+ 5319,
101
101
  "Made {0} text edits in {1} files, also created or deleted {2} files",
102
102
  textEditCount,
103
103
  textEditResources.size,
@@ -163,12 +163,12 @@ let BulkEdit = class BulkEdit {
163
163
  }
164
164
  async _performFileEdits(edits, undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress) {
165
165
  this._logService.debug("_performFileEdits", JSON.stringify(edits));
166
- const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(4961, "Workspace Edit")), this._code || "undoredo.workspaceEdit", undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
166
+ const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(5320, "Workspace Edit")), this._code || "undoredo.workspaceEdit", undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
167
167
  return await model.apply();
168
168
  }
169
169
  async _performTextEdits(edits, undoRedoGroup, undoRedoSource, progress, reason) {
170
170
  this._logService.debug("_performTextEdits", JSON.stringify(edits));
171
- const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(4961, "Workspace Edit")), this._code || "undoredo.workspaceEdit", this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
171
+ const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(5320, "Workspace Edit")), this._code || "undoredo.workspaceEdit", this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
172
172
  return await model.apply(reason);
173
173
  }
174
174
  async _performCellEdits(edits, undoRedoGroup, undoRedoSource, progress) {
@@ -217,7 +217,7 @@ let BulkEditService = class BulkEditService {
217
217
  let edits = liftEdits(Array.isArray(editsIn) ? editsIn : editsIn.edits);
218
218
  if (edits.length === 0) {
219
219
  return {
220
- ariaSummary: ( localize(4962, "Made no edits")),
220
+ ariaSummary: ( localize(5321, "Made no edits")),
221
221
  isApplied: false
222
222
  };
223
223
  }
@@ -300,24 +300,24 @@ let BulkEditService = class BulkEditService {
300
300
  let message;
301
301
  switch (reason) {
302
302
  case ShutdownReason.CLOSE:
303
- message = ( localize(4963, "Are you sure you want to close the window?"));
303
+ message = ( localize(5322, "Are you sure you want to close the window?"));
304
304
  break;
305
305
  case ShutdownReason.LOAD:
306
- message = ( localize(4964, "Are you sure you want to change the workspace?"));
306
+ message = ( localize(5323, "Are you sure you want to change the workspace?"));
307
307
  break;
308
308
  case ShutdownReason.RELOAD:
309
- message = ( localize(4965, "Are you sure you want to reload the window?"));
309
+ message = ( localize(5324, "Are you sure you want to reload the window?"));
310
310
  break;
311
311
  default:
312
- message = isMacintosh ? ( localize(4966, "Are you sure you want to quit?")) : ( localize(4967, "Are you sure you want to exit?"));
312
+ message = isMacintosh ? ( localize(5325, "Are you sure you want to quit?")) : ( localize(5326, "Are you sure you want to exit?"));
313
313
  break;
314
314
  }
315
315
  const result = await this._dialogService.confirm({
316
316
  message,
317
317
  detail: ( localize(
318
- 4968,
318
+ 5327,
319
319
  "'{0}' is in progress.",
320
- label || ( localize(4969, "File operation"))
320
+ label || ( localize(5328, "File operation"))
321
321
  ))
322
322
  });
323
323
  return !result.confirmed;
@@ -330,7 +330,7 @@ const autoSaveSetting = "files.refactoring.autoSave";
330
330
  properties: {
331
331
  [autoSaveSetting]: {
332
332
  description: ( localize(
333
- 4970,
333
+ 5329,
334
334
  "Controls if files that were part of a refactoring are saved automatically"
335
335
  )),
336
336
  default: true,
@@ -115,12 +115,12 @@ let BulkEditPreviewContribution = class BulkEditPreviewContribution {
115
115
  confirmed
116
116
  } = await this._dialogService.confirm({
117
117
  type: Severity.Info,
118
- message: ( localize(4971, "Another refactoring is being previewed.")),
118
+ message: ( localize(5330, "Another refactoring is being previewed.")),
119
119
  detail: ( localize(
120
- 4972,
120
+ 5331,
121
121
  "Press 'Continue' to discard the previous refactoring and continue with the current refactoring."
122
122
  )),
123
- primaryButton: ( localize(4973, "&&Continue"))
123
+ primaryButton: ( localize(5332, "&&Continue"))
124
124
  });
125
125
  if (!confirmed) {
126
126
  return [];
@@ -152,8 +152,8 @@ registerAction2(class ApplyAction extends Action2 {
152
152
  constructor() {
153
153
  super({
154
154
  id: "refactorPreview.apply",
155
- title: ( localize2(4974, "Apply Refactoring")),
156
- category: ( localize2(4975, "Refactor Preview")),
155
+ title: ( localize2(5333, "Apply Refactoring")),
156
+ category: ( localize2(5334, "Refactor Preview")),
157
157
  icon: Codicon.check,
158
158
  precondition: ( ContextKeyExpr.and(BulkEditPreviewContribution.ctxEnabled, BulkEditPane.ctxHasCheckedChanges)),
159
159
  menu: [{
@@ -177,8 +177,8 @@ registerAction2(class DiscardAction extends Action2 {
177
177
  constructor() {
178
178
  super({
179
179
  id: "refactorPreview.discard",
180
- title: ( localize2(4976, "Discard Refactoring")),
181
- category: ( localize2(4975, "Refactor Preview")),
180
+ title: ( localize2(5335, "Discard Refactoring")),
181
+ category: ( localize2(5334, "Refactor Preview")),
182
182
  icon: Codicon.clearAll,
183
183
  precondition: BulkEditPreviewContribution.ctxEnabled,
184
184
  menu: [{
@@ -197,8 +197,8 @@ registerAction2(class ToggleAction extends Action2 {
197
197
  constructor() {
198
198
  super({
199
199
  id: "refactorPreview.toggleCheckedState",
200
- title: ( localize2(4977, "Toggle Change")),
201
- category: ( localize2(4975, "Refactor Preview")),
200
+ title: ( localize2(5336, "Toggle Change")),
201
+ category: ( localize2(5334, "Refactor Preview")),
202
202
  precondition: BulkEditPreviewContribution.ctxEnabled,
203
203
  keybinding: {
204
204
  weight: KeybindingWeight.WorkbenchContrib,
@@ -221,8 +221,8 @@ registerAction2(class GroupByFile extends Action2 {
221
221
  constructor() {
222
222
  super({
223
223
  id: "refactorPreview.groupByFile",
224
- title: ( localize2(4978, "Group Changes By File")),
225
- category: ( localize2(4975, "Refactor Preview")),
224
+ title: ( localize2(5337, "Group Changes By File")),
225
+ category: ( localize2(5334, "Refactor Preview")),
226
226
  icon: Codicon.ungroupByRefType,
227
227
  precondition: ( ContextKeyExpr.and(BulkEditPane.ctxHasCategories, ( BulkEditPane.ctxGroupByFile.negate()), BulkEditPreviewContribution.ctxEnabled)),
228
228
  menu: [{
@@ -243,8 +243,8 @@ registerAction2(class GroupByType extends Action2 {
243
243
  constructor() {
244
244
  super({
245
245
  id: "refactorPreview.groupByType",
246
- title: ( localize2(4979, "Group Changes By Type")),
247
- category: ( localize2(4975, "Refactor Preview")),
246
+ title: ( localize2(5338, "Group Changes By Type")),
247
+ category: ( localize2(5334, "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(4979, "Group Changes By Type")),
273
- category: ( localize2(4975, "Refactor Preview")),
272
+ title: ( localize2(5338, "Group Changes By Type")),
273
+ category: ( localize2(5334, "Refactor Preview")),
274
274
  icon: Codicon.listTree,
275
275
  toggled: ( BulkEditPane.ctxGroupByFile.negate()),
276
276
  precondition: ( ContextKeyExpr.and(BulkEditPane.ctxHasCategories, BulkEditPreviewContribution.ctxEnabled)),
@@ -291,10 +291,10 @@ registerWorkbenchContribution2(
291
291
  BulkEditPreviewContribution,
292
292
  WorkbenchPhase.BlockRestore
293
293
  );
294
- const refactorPreviewViewIcon = registerIcon("refactor-preview-view-icon", Codicon.lightbulb, ( localize(4980, "View icon of the refactor preview view.")));
294
+ const refactorPreviewViewIcon = registerIcon("refactor-preview-view-icon", Codicon.lightbulb, ( localize(5339, "View icon of the refactor preview view.")));
295
295
  const container = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
296
296
  id: BulkEditPane.ID,
297
- title: ( localize2(4981, "Refactor Preview")),
297
+ title: ( localize2(5340, "Refactor Preview")),
298
298
  hideIfEmpty: true,
299
299
  ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [BulkEditPane.ID, {
300
300
  mergeViewWithContainerWhenSingleView: true
@@ -304,7 +304,7 @@ const container = ( Registry.as(Extensions.ViewContainersRegistry)).registerView
304
304
  }, ViewContainerLocation.Panel);
305
305
  ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
306
306
  id: BulkEditPane.ID,
307
- name: ( localize2(4981, "Refactor Preview")),
307
+ name: ( localize2(5340, "Refactor Preview")),
308
308
  when: BulkEditPreviewContribution.ctxEnabled,
309
309
  ctorDescriptor: ( new SyncDescriptor(BulkEditPane)),
310
310
  containerIcon: refactorPreviewViewIcon
@@ -53,10 +53,6 @@
53
53
  align-self: center;
54
54
  }
55
55
 
56
- .monaco-workbench .bulk-edit-panel .monaco-tl-contents .edit-checkbox.disabled {
57
- opacity: .5;
58
- }
59
-
60
56
  .monaco-workbench .bulk-edit-panel .monaco-tl-contents .monaco-icon-label.delete .monaco-icon-label-container {
61
57
  text-decoration: line-through;
62
58
  }
@@ -194,18 +194,18 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
194
194
  supportIcons: true,
195
195
  ...defaultButtonStyles
196
196
  });
197
- btnConfirm.label = ( localize(4982, "Apply"));
197
+ btnConfirm.label = ( localize(5341, "Apply"));
198
198
  btnConfirm.onDidClick(() => this.accept(), this, this._disposables);
199
199
  const btnCancel = buttonBar.addButton({
200
200
  ...defaultButtonStyles,
201
201
  secondary: true
202
202
  });
203
- btnCancel.label = ( localize(4983, "Discard"));
203
+ btnCancel.label = ( localize(5342, "Discard"));
204
204
  btnCancel.onDidClick(() => this.discard(), this, this._disposables);
205
205
  this._message = createElement("span");
206
206
  this._message.className = "message";
207
207
  this._message.innerText = ( localize(
208
- 4984,
208
+ 5343,
209
209
  "Invoke a code action, like rename, to see a preview of its changes here."
210
210
  ));
211
211
  parent.appendChild(this._message);
@@ -280,7 +280,7 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
280
280
  let message;
281
281
  if (conflicts.length === 1) {
282
282
  message = ( localize(
283
- 4985,
283
+ 5344,
284
284
  "Cannot apply refactoring because '{0}' has changed in the meantime.",
285
285
  this._labelService.getUriLabel(conflicts[0], {
286
286
  relative: true
@@ -288,7 +288,7 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
288
288
  ));
289
289
  } else {
290
290
  message = ( localize(
291
- 4986,
291
+ 5345,
292
292
  "Cannot apply refactoring because {0} other files have changed in the meantime.",
293
293
  conflicts.length
294
294
  ));
@@ -36,7 +36,7 @@ export declare class BulkFileOperation {
36
36
  readonly parent: BulkFileOperations;
37
37
  type: number;
38
38
  textEdits: BulkTextEdit[];
39
- originalEdits: Map<number, ResourceTextEdit | ResourceFileEdit>;
39
+ originalEdits: Map<number, ResourceFileEdit | ResourceTextEdit>;
40
40
  newUri?: URI;
41
41
  constructor(uri: URI, parent: BulkFileOperations);
42
42
  addEdit(index: number, type: BulkFileOperationType, edit: ResourceTextEdit | ResourceFileEdit): void;
@@ -102,7 +102,7 @@ class BulkFileOperation {
102
102
  class BulkCategory {
103
103
  static {
104
104
  this._defaultMetadata = ( Object.freeze({
105
- label: ( localize(4987, "Other")),
105
+ label: ( localize(5346, "Other")),
106
106
  icon: Codicon.symbolFile,
107
107
  needsConfirmation: false
108
108
  }));
@@ -4,7 +4,7 @@ import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor
4
4
  import { createMatches } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
5
5
  import { HighlightedLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
6
6
  import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
7
- import { createElement, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
7
+ import { Checkbox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/toggle/toggle';
8
8
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
9
9
  import { TextModel } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
10
10
  import { BulkFileOperationType, BulkFileOperations } from './bulkEditPreview.js';
@@ -22,6 +22,8 @@ import { PLAINTEXT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/ed
22
22
  import { SnippetParser } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetParser';
23
23
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
24
24
  import { asCSSUrl } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/cssValue';
25
+ import { defaultCheckboxStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
26
+ import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
25
27
 
26
28
  var CategoryElementRenderer_1, FileElementRenderer_1, TextEditElementRenderer_1;
27
29
  class CategoryElement {
@@ -240,7 +242,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
240
242
  this._labelService = _labelService;
241
243
  }
242
244
  getWidgetAriaLabel() {
243
- return localize(4988, "Bulk Edit");
245
+ return localize(5347, "Bulk Edit");
244
246
  }
245
247
  getRole(_element) {
246
248
  return "checkbox";
@@ -250,7 +252,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
250
252
  if (element.edit.textEdits.length > 0) {
251
253
  if (element.edit.type & BulkFileOperationType.Rename && element.edit.newUri) {
252
254
  return localize(
253
- 4989,
255
+ 5348,
254
256
  "Renaming {0} to {1}, also making text edits",
255
257
  this._labelService.getUriLabel(element.edit.uri, {
256
258
  relative: true
@@ -261,7 +263,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
261
263
  );
262
264
  } else if (element.edit.type & BulkFileOperationType.Create) {
263
265
  return localize(
264
- 4990,
266
+ 5349,
265
267
  "Creating {0}, also making text edits",
266
268
  this._labelService.getUriLabel(element.edit.uri, {
267
269
  relative: true
@@ -269,7 +271,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
269
271
  );
270
272
  } else if (element.edit.type & BulkFileOperationType.Delete) {
271
273
  return localize(
272
- 4991,
274
+ 5350,
273
275
  "Deleting {0}, also making text edits",
274
276
  this._labelService.getUriLabel(element.edit.uri, {
275
277
  relative: true
@@ -277,7 +279,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
277
279
  );
278
280
  } else {
279
281
  return localize(
280
- 4992,
282
+ 5351,
281
283
  "{0}, making text edits",
282
284
  this._labelService.getUriLabel(element.edit.uri, {
283
285
  relative: true
@@ -287,7 +289,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
287
289
  } else {
288
290
  if (element.edit.type & BulkFileOperationType.Rename && element.edit.newUri) {
289
291
  return localize(
290
- 4993,
292
+ 5352,
291
293
  "Renaming {0} to {1}",
292
294
  this._labelService.getUriLabel(element.edit.uri, {
293
295
  relative: true
@@ -297,11 +299,11 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
297
299
  })
298
300
  );
299
301
  } else if (element.edit.type & BulkFileOperationType.Create) {
300
- return localize(4994, "Creating {0}", this._labelService.getUriLabel(element.edit.uri, {
302
+ return localize(5353, "Creating {0}", this._labelService.getUriLabel(element.edit.uri, {
301
303
  relative: true
302
304
  }));
303
305
  } else if (element.edit.type & BulkFileOperationType.Delete) {
304
- return localize(4995, "Deleting {0}", this._labelService.getUriLabel(element.edit.uri, {
306
+ return localize(5354, "Deleting {0}", this._labelService.getUriLabel(element.edit.uri, {
305
307
  relative: true
306
308
  }));
307
309
  }
@@ -310,7 +312,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
310
312
  if (element instanceof TextEditElement) {
311
313
  if (element.selecting.length > 0 && element.inserting.length > 0) {
312
314
  return localize(
313
- 4996,
315
+ 5355,
314
316
  "line {0}, replacing {1} with {2}",
315
317
  element.edit.textEdit.textEdit.range.startLineNumber,
316
318
  element.selecting,
@@ -318,14 +320,14 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
318
320
  );
319
321
  } else if (element.selecting.length > 0 && element.inserting.length === 0) {
320
322
  return localize(
321
- 4997,
323
+ 5356,
322
324
  "line {0}, removing {1}",
323
325
  element.edit.textEdit.textEdit.range.startLineNumber,
324
326
  element.selecting
325
327
  );
326
328
  } else if (element.selecting.length === 0 && element.inserting.length > 0) {
327
329
  return localize(
328
- 4998,
330
+ 5357,
329
331
  "line {0}, inserting {1}",
330
332
  element.edit.textEdit.textEdit.range.startLineNumber,
331
333
  element.selecting
@@ -403,11 +405,10 @@ let FileElementTemplate = class FileElementTemplate {
403
405
  this._labelService = _labelService;
404
406
  this._disposables = ( new DisposableStore());
405
407
  this._localDisposables = ( new DisposableStore());
406
- this._checkbox = createElement("input");
407
- this._checkbox.className = "edit-checkbox";
408
- this._checkbox.type = "checkbox";
409
- this._checkbox.setAttribute("role", "checkbox");
410
- container.appendChild(this._checkbox);
408
+ this._checkbox = this._disposables.add(( new Checkbox("", false, defaultCheckboxStyles)));
409
+ this._checkbox.domNode.classList.add("edit-checkbox");
410
+ this._checkbox.domNode.tabIndex = -1;
411
+ container.appendChild(this._checkbox.domNode);
411
412
  this._label = resourceLabels.create(container, {
412
413
  supportHighlights: true
413
414
  });
@@ -423,14 +424,19 @@ let FileElementTemplate = class FileElementTemplate {
423
424
  set(element, score) {
424
425
  this._localDisposables.clear();
425
426
  this._checkbox.checked = element.isChecked();
426
- this._checkbox.disabled = element.isDisabled();
427
- this._localDisposables.add(addDisposableListener(this._checkbox, "change", () => {
427
+ if (element.isDisabled()) {
428
+ this._checkbox.disable();
429
+ } else {
430
+ this._checkbox.enable();
431
+ }
432
+ this._checkbox.domNode.tabIndex = -1;
433
+ this._localDisposables.add(this._checkbox.onChange(() => {
428
434
  element.setChecked(this._checkbox.checked);
429
435
  }));
430
436
  if (element.edit.type & BulkFileOperationType.Rename && element.edit.newUri) {
431
437
  this._label.setResource({
432
438
  resource: element.edit.uri,
433
- name: ( localize(4999, "{0} → {1}", this._labelService.getUriLabel(element.edit.uri, {
439
+ name: ( localize(5358, "{0} → {1}", this._labelService.getUriLabel(element.edit.uri, {
434
440
  relative: true
435
441
  }), this._labelService.getUriLabel(element.edit.newUri, {
436
442
  relative: true
@@ -441,7 +447,7 @@ let FileElementTemplate = class FileElementTemplate {
441
447
  badges: false
442
448
  }
443
449
  });
444
- this._details.innerText = ( localize(5000, "(renaming)"));
450
+ this._details.innerText = ( localize(5359, "(renaming)"));
445
451
  } else {
446
452
  const options = {
447
453
  matches: createMatches(score),
@@ -453,9 +459,9 @@ let FileElementTemplate = class FileElementTemplate {
453
459
  extraClasses: []
454
460
  };
455
461
  if (element.edit.type & BulkFileOperationType.Create) {
456
- this._details.innerText = ( localize(5001, "(creating)"));
462
+ this._details.innerText = ( localize(5360, "(creating)"));
457
463
  } else if (element.edit.type & BulkFileOperationType.Delete) {
458
- this._details.innerText = ( localize(5002, "(deleting)"));
464
+ this._details.innerText = ( localize(5361, "(deleting)"));
459
465
  options.extraClasses.push("delete");
460
466
  } else {
461
467
  this._details.innerText = "";
@@ -494,11 +500,10 @@ let TextEditElementTemplate = class TextEditElementTemplate {
494
500
  this._disposables = ( new DisposableStore());
495
501
  this._localDisposables = ( new DisposableStore());
496
502
  container.classList.add("textedit");
497
- this._checkbox = createElement("input");
498
- this._checkbox.className = "edit-checkbox";
499
- this._checkbox.type = "checkbox";
500
- this._checkbox.setAttribute("role", "checkbox");
501
- container.appendChild(this._checkbox);
503
+ this._checkbox = this._disposables.add(( new Checkbox("", false, defaultCheckboxStyles)));
504
+ this._checkbox.domNode.classList.add("edit-checkbox");
505
+ this._checkbox.domNode.tabIndex = -1;
506
+ container.appendChild(this._checkbox.domNode);
502
507
  this._icon = createElement("div");
503
508
  container.appendChild(this._icon);
504
509
  this._label = this._disposables.add(( new HighlightedLabel(container)));
@@ -509,17 +514,16 @@ let TextEditElementTemplate = class TextEditElementTemplate {
509
514
  }
510
515
  set(element) {
511
516
  this._localDisposables.clear();
512
- this._localDisposables.add(addDisposableListener(this._checkbox, "change", e => {
517
+ this._localDisposables.add(this._checkbox.onChange(() => {
513
518
  element.setChecked(this._checkbox.checked);
514
- e.preventDefault();
515
519
  }));
516
- if (element.parent.isChecked()) {
517
- this._checkbox.checked = element.isChecked();
518
- this._checkbox.disabled = element.isDisabled();
520
+ this._checkbox.checked = element.isChecked();
521
+ if (element.isDisabled()) {
522
+ this._checkbox.disable();
519
523
  } else {
520
- this._checkbox.checked = element.isChecked();
521
- this._checkbox.disabled = element.isDisabled();
524
+ this._checkbox.enable();
522
525
  }
526
+ this._checkbox.domNode.tabIndex = -1;
523
527
  let value = "";
524
528
  value += element.prefix;
525
529
  value += element.selecting;
@@ -540,7 +544,7 @@ let TextEditElementTemplate = class TextEditElementTemplate {
540
544
  metadata
541
545
  } = element.edit.textEdit;
542
546
  if (metadata && metadata.description) {
543
- title = ( localize(5003, "{0} - {1}", metadata.label, metadata.description));
547
+ title = ( localize(5362, "{0} - {1}", metadata.label, metadata.description));
544
548
  } else if (metadata) {
545
549
  title = metadata.label;
546
550
  }