@codingame/monaco-vscode-bulk-edit-service-override 1.83.15 → 1.85.0-next.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": "1.83.15",
3
+ "version": "1.85.0-next.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,7 +18,7 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.83.15",
22
- "monaco-editor": "0.44.0"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.85.0-next.0",
22
+ "monaco-editor": "0.45.0"
23
23
  }
24
24
  }
@@ -36,7 +36,7 @@ let RenameOperation = RenameOperation_1 = class RenameOperation {
36
36
  this._fileService = _fileService;
37
37
  }
38
38
  get uris() {
39
- return ( this._edits.map(edit => [edit.newUri, edit.oldUri])).flat();
39
+ return this._edits.flatMap(edit => [edit.newUri, edit.oldUri]);
40
40
  }
41
41
  async perform(token) {
42
42
  const moves = [];
@@ -87,7 +87,7 @@ let CopyOperation = class CopyOperation {
87
87
  this._instaService = _instaService;
88
88
  }
89
89
  get uris() {
90
- return ( this._edits.map(edit => [edit.newUri, edit.oldUri])).flat();
90
+ return this._edits.flatMap(edit => [edit.newUri, edit.oldUri]);
91
91
  }
92
92
  async perform(token) {
93
93
  const copies = [];
@@ -261,7 +261,7 @@ class FileUndoRedoElement {
261
261
  this.operations = operations;
262
262
  this.confirmBeforeUndo = confirmBeforeUndo;
263
263
  this.type = 1 ;
264
- this.resources = ( operations.map(op => op.uris)).flat();
264
+ this.resources = operations.flatMap(op => op.uris);
265
265
  }
266
266
  async undo() {
267
267
  await this._reverse();