@codingame/monaco-vscode-bulk-edit-service-override 12.0.1 → 13.1.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/index.d.ts +1 -1
- package/index.js +3 -3
- package/package.json +5 -13
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +40 -40
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +12 -12
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +13 -13
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +8 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/opaqueEdits.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/opaqueEdits.js +5 -5
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +41 -41
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.d.ts +19 -19
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +32 -32
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +22 -22
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +38 -38
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
1
|
+
import { type IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
2
|
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
3
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
-
import { IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
2
|
+
import '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
3
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
+
import { IBulkEditService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
5
5
|
import { BulkEditService } from './vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js';
|
|
6
6
|
import './vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js';
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-bulk-edit-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - bulk-edit service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,18 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "
|
|
19
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "
|
|
20
|
-
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "
|
|
21
|
-
"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "12.0.1"
|
|
25
|
-
},
|
|
26
|
-
"peerDependenciesMeta": {
|
|
27
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": {
|
|
28
|
-
"optional": true
|
|
29
|
-
}
|
|
18
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "13.1.0"
|
|
30
22
|
},
|
|
31
23
|
"main": "index.js",
|
|
32
24
|
"module": "index.js",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IBulkEditOptions, IBulkEditPreviewHandler, IBulkEditResult, IBulkEditService, ResourceEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
3
|
-
import { WorkspaceEdit } from "vscode/vscode/vs/editor/common/languages";
|
|
4
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
8
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
9
|
-
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
10
|
-
import { IWorkingCopyService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
1
|
+
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IBulkEditOptions, IBulkEditPreviewHandler, IBulkEditResult, IBulkEditService, ResourceEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
3
|
+
import { WorkspaceEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
|
4
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
9
|
+
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
10
|
+
import { IWorkingCopyService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
11
11
|
export declare class BulkEditService implements IBulkEditService {
|
|
12
12
|
private readonly _instaService;
|
|
13
13
|
private readonly _logService;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
|
-
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
|
|
6
|
-
import { ResourceMap, ResourceSet } from 'vscode/vscode/vs/base/common/map';
|
|
7
|
-
import { isCodeEditor, isDiffEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
8
|
-
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
9
|
-
import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
10
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
11
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
13
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
14
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
15
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
17
|
-
import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
18
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
19
|
-
import { UndoRedoGroup } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
4
|
+
import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { LinkedList } from '@codingame/monaco-vscode-api/vscode/vs/base/common/linkedList';
|
|
6
|
+
import { ResourceMap, ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
7
|
+
import { isCodeEditor, isDiffEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
8
|
+
import { ResourceTextEdit, ResourceFileEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
9
|
+
import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
13
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
14
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
15
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
17
|
+
import { Progress } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
18
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
19
|
+
import { UndoRedoGroup } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
20
20
|
import { ResourceNotebookCellEdit, BulkCellEdits } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
21
21
|
import { BulkFileEdits } from './bulkFileEdits.js';
|
|
22
22
|
import { BulkTextEdits } from './bulkTextEdits.js';
|
|
23
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
|
-
import { ShutdownReason } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
25
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
26
|
-
import { IWorkingCopyService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
|
|
23
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
|
+
import { ShutdownReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
25
|
+
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
26
|
+
import { IWorkingCopyService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
|
|
27
27
|
import { ResourceAttachmentEdit, OpaqueEdits } from './opaqueEdits.js';
|
|
28
28
|
|
|
29
29
|
function liftEdits(edits) {
|
|
@@ -71,24 +71,24 @@ let BulkEdit = class BulkEdit {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
if (this._edits.length === 0) {
|
|
74
|
-
return localize(
|
|
74
|
+
return localize(4079, "Made no edits");
|
|
75
75
|
}
|
|
76
76
|
else if (otherResources.size === 0) {
|
|
77
77
|
if (textEditCount > 1 && textEditResources.size > 1) {
|
|
78
78
|
return localize(
|
|
79
|
-
|
|
79
|
+
4080,
|
|
80
80
|
"Made {0} text edits in {1} files",
|
|
81
81
|
textEditCount,
|
|
82
82
|
textEditResources.size
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
86
|
-
return localize(
|
|
86
|
+
return localize(4081, "Made {0} text edits in one file", textEditCount);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
90
|
return localize(
|
|
91
|
-
|
|
91
|
+
4082,
|
|
92
92
|
"Made {0} text edits in {1} files, also created or deleted {2} files",
|
|
93
93
|
textEditCount,
|
|
94
94
|
textEditResources.size,
|
|
@@ -140,12 +140,12 @@ let BulkEdit = class BulkEdit {
|
|
|
140
140
|
}
|
|
141
141
|
async _performFileEdits(edits, undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress) {
|
|
142
142
|
this._logService.debug('_performFileEdits', JSON.stringify(edits));
|
|
143
|
-
const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(
|
|
143
|
+
const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize(4083, "Workspace Edit")), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
|
|
144
144
|
return await model.apply();
|
|
145
145
|
}
|
|
146
146
|
async _performTextEdits(edits, undoRedoGroup, undoRedoSource, progress) {
|
|
147
147
|
this._logService.debug('_performTextEdits', JSON.stringify(edits));
|
|
148
|
-
const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(
|
|
148
|
+
const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize(4083, "Workspace Edit")), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
|
|
149
149
|
return await model.apply();
|
|
150
150
|
}
|
|
151
151
|
async _performCellEdits(edits, undoRedoGroup, undoRedoSource, progress) {
|
|
@@ -188,7 +188,7 @@ let BulkEditService = class BulkEditService {
|
|
|
188
188
|
async apply(editsIn, options) {
|
|
189
189
|
let edits = liftEdits(Array.isArray(editsIn) ? editsIn : editsIn.edits);
|
|
190
190
|
if (edits.length === 0) {
|
|
191
|
-
return { ariaSummary: ( localize(
|
|
191
|
+
return { ariaSummary: ( localize(4084, "Made no edits")), isApplied: false };
|
|
192
192
|
}
|
|
193
193
|
if (this._previewHandler && (options?.showPreview || ( edits.some(value => value.metadata?.needsConfirmation)))) {
|
|
194
194
|
edits = await this._previewHandler(edits, options);
|
|
@@ -259,28 +259,28 @@ let BulkEditService = class BulkEditService {
|
|
|
259
259
|
let primaryButton;
|
|
260
260
|
switch (reason) {
|
|
261
261
|
case ShutdownReason.CLOSE:
|
|
262
|
-
message = ( localize(
|
|
263
|
-
primaryButton = ( localize(
|
|
262
|
+
message = ( localize(4085, "Are you sure you want to close the window?"));
|
|
263
|
+
primaryButton = ( localize(4086, "&&Close Window"));
|
|
264
264
|
break;
|
|
265
265
|
case ShutdownReason.LOAD:
|
|
266
|
-
message = ( localize(
|
|
267
|
-
primaryButton = ( localize(
|
|
266
|
+
message = ( localize(4087, "Are you sure you want to change the workspace?"));
|
|
267
|
+
primaryButton = ( localize(4088, "Change &&Workspace"));
|
|
268
268
|
break;
|
|
269
269
|
case ShutdownReason.RELOAD:
|
|
270
|
-
message = ( localize(
|
|
271
|
-
primaryButton = ( localize(
|
|
270
|
+
message = ( localize(4089, "Are you sure you want to reload the window?"));
|
|
271
|
+
primaryButton = ( localize(4090, "&&Reload Window"));
|
|
272
272
|
break;
|
|
273
273
|
default:
|
|
274
|
-
message = ( localize(
|
|
275
|
-
primaryButton = ( localize(
|
|
274
|
+
message = ( localize(4091, "Are you sure you want to quit?"));
|
|
275
|
+
primaryButton = ( localize(4092, "&&Quit"));
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
const result = await this._dialogService.confirm({
|
|
279
279
|
message,
|
|
280
280
|
detail: ( localize(
|
|
281
|
-
|
|
281
|
+
4093,
|
|
282
282
|
"'{0}' is in progress.",
|
|
283
|
-
label || ( localize(
|
|
283
|
+
label || ( localize(4094, "File operation"))
|
|
284
284
|
)),
|
|
285
285
|
primaryButton
|
|
286
286
|
});
|
|
@@ -302,7 +302,7 @@ const autoSaveSetting = 'files.refactoring.autoSave';
|
|
|
302
302
|
properties: {
|
|
303
303
|
[autoSaveSetting]: {
|
|
304
304
|
description: ( localize(
|
|
305
|
-
|
|
305
|
+
4095,
|
|
306
306
|
"Controls if files that were part of a refactoring are saved automatically"
|
|
307
307
|
)),
|
|
308
308
|
default: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IProgress } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
2
|
-
import { UndoRedoGroup, UndoRedoSource } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
3
|
-
import { IUndoRedoService } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
4
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
5
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
-
import { ResourceFileEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
7
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
1
|
+
import { IProgress } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
2
|
+
import { UndoRedoGroup, UndoRedoSource } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
3
|
+
import { IUndoRedoService } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
4
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
+
import { ResourceFileEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
7
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
8
8
|
export declare class BulkFileEdits {
|
|
9
9
|
private readonly _label;
|
|
10
10
|
private readonly _code;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { FileSystemProviderCapabilities } from 'vscode/vscode/vs/platform/files/common/files';
|
|
4
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
5
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
-
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
7
|
-
import { UndoRedoElementType } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
8
|
-
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
9
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
-
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
12
|
-
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
13
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { FileSystemProviderCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
4
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
5
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
+
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
7
|
+
import { UndoRedoElementType } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
8
|
+
import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
9
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
12
|
+
import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
13
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
14
14
|
|
|
15
15
|
var RenameOperation_1;
|
|
16
16
|
class Noop {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
-
import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
-
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
4
|
-
import { IProgress } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
5
|
-
import { IEditorWorkerService } from "vscode/vscode/vs/editor/common/services/editorWorker";
|
|
6
|
-
import { UndoRedoGroup, UndoRedoSource } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
7
|
-
import { IUndoRedoService } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
8
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
9
|
-
import { ResourceTextEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
10
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService";
|
|
4
|
+
import { IProgress } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
5
|
+
import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker";
|
|
6
|
+
import { UndoRedoGroup, UndoRedoSource } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
7
|
+
import { IUndoRedoService } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
8
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
9
|
+
import { ResourceTextEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
10
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
11
11
|
export declare class BulkTextEdits {
|
|
12
12
|
private readonly _label;
|
|
13
13
|
private readonly _code;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
5
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
6
|
-
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
7
|
-
import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
|
|
8
|
-
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
9
|
-
import { SingleModelEditStackElement, MultiModelEditStackElement } from 'vscode/vscode/vs/editor/common/model/editStack';
|
|
10
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
11
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
12
|
-
import { ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
13
|
-
import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
14
|
-
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
5
|
+
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
6
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
7
|
+
import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker';
|
|
8
|
+
import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
9
|
+
import { SingleModelEditStackElement, MultiModelEditStackElement } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/editStack';
|
|
10
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
11
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
12
|
+
import { ResourceTextEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
13
|
+
import { SnippetController2 } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
14
|
+
import { SnippetParser } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
15
15
|
|
|
16
16
|
class ModelEditTask {
|
|
17
17
|
constructor(_modelReference) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
4
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
5
|
-
import { ResourceEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
6
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
1
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
4
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
5
|
+
import { ResourceEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
6
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
7
|
export declare class ConflictDetector {
|
|
8
8
|
private readonly _conflicts;
|
|
9
9
|
private readonly _disposables;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
4
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
5
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
6
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
8
|
-
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
4
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
5
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
6
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
|
+
import { ResourceTextEdit, ResourceFileEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
9
9
|
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
10
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
10
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
11
11
|
|
|
12
12
|
let ConflictDetector = class ConflictDetector {
|
|
13
13
|
constructor(edits, fileService, modelService, logService) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import { ResourceEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
4
|
-
import { ICustomEdit, WorkspaceEditMetadata } from "vscode/vscode/vs/editor/common/languages";
|
|
5
|
-
import { IProgress } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
6
|
-
import { UndoRedoGroup, UndoRedoSource } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
7
|
-
import { IUndoRedoService } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { ResourceEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
4
|
+
import { ICustomEdit, WorkspaceEditMetadata } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
|
5
|
+
import { IProgress } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
6
|
+
import { UndoRedoGroup, UndoRedoSource } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
7
|
+
import { IUndoRedoService } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
8
8
|
export declare class ResourceAttachmentEdit extends ResourceEdit implements ICustomEdit {
|
|
9
9
|
readonly resource: URI;
|
|
10
10
|
readonly undo: () => Promise<void> | void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { isObject } from 'vscode/vscode/vs/base/common/types';
|
|
4
|
-
import { ResourceEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
5
|
-
import { UndoRedoElementType } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
6
|
-
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { isObject } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
4
|
+
import { ResourceEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
5
|
+
import { UndoRedoElementType } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
6
|
+
import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
7
7
|
|
|
8
8
|
class ResourceAttachmentEdit extends ResourceEdit {
|
|
9
9
|
static is(candidate) {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
|
-
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
|
-
import { IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
4
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
5
|
+
import { IBulkEditService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
6
6
|
import { BulkEditPane } from './bulkEditPane.js';
|
|
7
|
-
import { ViewContainerLocation, Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
8
|
-
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
9
|
-
import { FocusedViewContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
10
|
-
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
7
|
+
import { ViewContainerLocation, Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
8
|
+
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
9
|
+
import { FocusedViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
10
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { ViewPaneContainer } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
12
|
-
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
|
-
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
15
|
-
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
16
|
-
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
17
|
-
import { WorkbenchListFocusContextKey } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
18
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
19
|
-
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
20
|
-
import { EditorResourceAccessor, SideBySideEditor } from 'vscode/vscode/vs/workbench/common/editor';
|
|
21
|
-
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
22
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
23
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
24
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
25
|
-
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
26
|
-
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
12
|
+
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
|
+
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
15
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
16
|
+
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
17
|
+
import { WorkbenchListFocusContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
18
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
19
|
+
import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
20
|
+
import { EditorResourceAccessor, SideBySideEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
21
|
+
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
22
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
23
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
24
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
25
|
+
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
26
|
+
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
27
27
|
|
|
28
28
|
var BulkEditPreviewContribution_1;
|
|
29
29
|
async function getBulkEditPane(viewsService) {
|
|
@@ -97,12 +97,12 @@ let BulkEditPreviewContribution = class BulkEditPreviewContribution {
|
|
|
97
97
|
if (view.hasInput()) {
|
|
98
98
|
const { confirmed } = await this._dialogService.confirm({
|
|
99
99
|
type: Severity.Info,
|
|
100
|
-
message: ( localize(
|
|
100
|
+
message: ( localize(4096, "Another refactoring is being previewed.")),
|
|
101
101
|
detail: ( localize(
|
|
102
|
-
|
|
102
|
+
4097,
|
|
103
103
|
"Press 'Continue' to discard the previous refactoring and continue with the current refactoring."
|
|
104
104
|
)),
|
|
105
|
-
primaryButton: ( localize(
|
|
105
|
+
primaryButton: ( localize(4098, "&&Continue"))
|
|
106
106
|
});
|
|
107
107
|
if (!confirmed) {
|
|
108
108
|
return [];
|
|
@@ -143,8 +143,8 @@ registerAction2(class ApplyAction extends Action2 {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super({
|
|
145
145
|
id: 'refactorPreview.apply',
|
|
146
|
-
title: ( localize2(
|
|
147
|
-
category: ( localize2(
|
|
146
|
+
title: ( localize2(4099, "Apply Refactoring")),
|
|
147
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
148
148
|
icon: Codicon.check,
|
|
149
149
|
precondition: ( ContextKeyExpr.and(BulkEditPreviewContribution.ctxEnabled, BulkEditPane.ctxHasCheckedChanges)),
|
|
150
150
|
menu: [{
|
|
@@ -168,8 +168,8 @@ registerAction2(class DiscardAction extends Action2 {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: 'refactorPreview.discard',
|
|
171
|
-
title: ( localize2(
|
|
172
|
-
category: ( localize2(
|
|
171
|
+
title: ( localize2(4101, "Discard Refactoring")),
|
|
172
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
173
173
|
icon: Codicon.clearAll,
|
|
174
174
|
precondition: BulkEditPreviewContribution.ctxEnabled,
|
|
175
175
|
menu: [{
|
|
@@ -188,8 +188,8 @@ registerAction2(class ToggleAction extends Action2 {
|
|
|
188
188
|
constructor() {
|
|
189
189
|
super({
|
|
190
190
|
id: 'refactorPreview.toggleCheckedState',
|
|
191
|
-
title: ( localize2(
|
|
192
|
-
category: ( localize2(
|
|
191
|
+
title: ( localize2(4102, "Toggle Change")),
|
|
192
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
193
193
|
precondition: BulkEditPreviewContribution.ctxEnabled,
|
|
194
194
|
keybinding: {
|
|
195
195
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -212,8 +212,8 @@ registerAction2(class GroupByFile extends Action2 {
|
|
|
212
212
|
constructor() {
|
|
213
213
|
super({
|
|
214
214
|
id: 'refactorPreview.groupByFile',
|
|
215
|
-
title: ( localize2(
|
|
216
|
-
category: ( localize2(
|
|
215
|
+
title: ( localize2(4103, "Group Changes By File")),
|
|
216
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
217
217
|
icon: Codicon.ungroupByRefType,
|
|
218
218
|
precondition: ( ContextKeyExpr.and(BulkEditPane.ctxHasCategories, ( BulkEditPane.ctxGroupByFile.negate()), BulkEditPreviewContribution.ctxEnabled)),
|
|
219
219
|
menu: [{
|
|
@@ -234,8 +234,8 @@ registerAction2(class GroupByType extends Action2 {
|
|
|
234
234
|
constructor() {
|
|
235
235
|
super({
|
|
236
236
|
id: 'refactorPreview.groupByType',
|
|
237
|
-
title: ( localize2(
|
|
238
|
-
category: ( localize2(
|
|
237
|
+
title: ( localize2(4104, "Group Changes By Type")),
|
|
238
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
239
239
|
icon: Codicon.groupByRefType,
|
|
240
240
|
precondition: ( ContextKeyExpr.and(
|
|
241
241
|
BulkEditPane.ctxHasCategories,
|
|
@@ -260,8 +260,8 @@ registerAction2(class ToggleGrouping extends Action2 {
|
|
|
260
260
|
constructor() {
|
|
261
261
|
super({
|
|
262
262
|
id: 'refactorPreview.toggleGrouping',
|
|
263
|
-
title: ( localize2(
|
|
264
|
-
category: ( localize2(
|
|
263
|
+
title: ( localize2(4104, "Group Changes By Type")),
|
|
264
|
+
category: ( localize2(4100, "Refactor Preview")),
|
|
265
265
|
icon: Codicon.listTree,
|
|
266
266
|
toggled: ( BulkEditPane.ctxGroupByFile.negate()),
|
|
267
267
|
precondition: ( ContextKeyExpr.and(BulkEditPane.ctxHasCategories, BulkEditPreviewContribution.ctxEnabled)),
|
|
@@ -278,10 +278,10 @@ registerAction2(class ToggleGrouping extends Action2 {
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
registerWorkbenchContribution2(BulkEditPreviewContribution.ID, BulkEditPreviewContribution, WorkbenchPhase.BlockRestore);
|
|
281
|
-
const refactorPreviewViewIcon = registerIcon('refactor-preview-view-icon', Codicon.lightbulb, ( localize(
|
|
281
|
+
const refactorPreviewViewIcon = registerIcon('refactor-preview-view-icon', Codicon.lightbulb, ( localize(4105, 'View icon of the refactor preview view.')));
|
|
282
282
|
const container = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
283
283
|
id: BulkEditPane.ID,
|
|
284
|
-
title: ( localize2(
|
|
284
|
+
title: ( localize2(4106, "Refactor Preview")),
|
|
285
285
|
hideIfEmpty: true,
|
|
286
286
|
ctorDescriptor: ( new SyncDescriptor(
|
|
287
287
|
ViewPaneContainer,
|
|
@@ -292,7 +292,7 @@ const container = ( Registry.as(Extensions.ViewContainersRegistry)).registerView
|
|
|
292
292
|
}, ViewContainerLocation.Panel);
|
|
293
293
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
294
294
|
id: BulkEditPane.ID,
|
|
295
|
-
name: ( localize2(
|
|
295
|
+
name: ( localize2(4106, "Refactor Preview")),
|
|
296
296
|
when: BulkEditPreviewContribution.ctxEnabled,
|
|
297
297
|
ctorDescriptor: ( new SyncDescriptor(BulkEditPane)),
|
|
298
298
|
containerIcon: refactorPreviewViewIcon,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
1
|
+
import n from '@codingame/monaco-vscode-api/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".monaco-workbench .bulk-edit-panel .highlight.insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-workbench .bulk-edit-panel .highlight.remove{background-color:var(--vscode-diffEditor-removedTextBackground);text-decoration:line-through}.monaco-workbench .bulk-edit-panel .message{padding:10px 20px}.monaco-workbench .bulk-edit-panel[data-state=data] .content,.monaco-workbench .bulk-edit-panel[data-state=message] .message{display:flex}.monaco-workbench .bulk-edit-panel[data-state=data] .message,.monaco-workbench .bulk-edit-panel[data-state=message] .content{display:none}.monaco-workbench .bulk-edit-panel .content{display:flex;flex-direction:column;justify-content:space-between}.monaco-workbench .bulk-edit-panel .content .buttons{padding-left:20px;padding-top:10px}.monaco-workbench .bulk-edit-panel .content .buttons .monaco-button{display:inline-flex;margin:0 4px;padding:4px 8px;width:inherit}.monaco-workbench .bulk-edit-panel .monaco-tl-contents{display:flex}.monaco-workbench .bulk-edit-panel .monaco-tl-contents .edit-checkbox{align-self:center}.monaco-workbench .bulk-edit-panel .monaco-tl-contents .edit-checkbox.disabled{opacity:.5}.monaco-workbench .bulk-edit-panel .monaco-tl-contents .monaco-icon-label.delete .monaco-icon-label-container{text-decoration:line-through}.monaco-workbench .bulk-edit-panel .monaco-tl-contents .details{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-workbench .bulk-edit-panel .monaco-tl-contents.category{align-items:center;display:flex;flex:1;flex-flow:row nowrap}.monaco-workbench .bulk-edit-panel .monaco-tl-contents.category .theme-icon,.monaco-workbench .bulk-edit-panel .monaco-tl-contents.textedit .theme-icon{margin-right:4px}.monaco-workbench .bulk-edit-panel .monaco-tl-contents.category .uri-icon,.monaco-workbench .bulk-edit-panel .monaco-tl-contents.textedit .uri-icon,.monaco-workbench.hc-light .bulk-edit-panel .monaco-tl-contents.category .uri-icon,.monaco-workbench.hc-light .bulk-edit-panel .monaco-tl-contents.textedit .uri-icon{background-image:var(--background-light);background-position:0;background-repeat:no-repeat;background-size:contain;height:100%;margin-right:4px;min-width:16px;width:16px}.monaco-workbench.hc-black .bulk-edit-panel .monaco-tl-contents.category .uri-icon,.monaco-workbench.hc-black .bulk-edit-panel .monaco-tl-contents.textedit .uri-icon,.monaco-workbench.vs-dark .bulk-edit-panel .monaco-tl-contents.category .uri-icon,.monaco-workbench.vs-dark .bulk-edit-panel .monaco-tl-contents.textedit .uri-icon{background-image:var(--background-dark)}.monaco-workbench .bulk-edit-panel .monaco-tl-contents.textedit .monaco-highlighted-label{overflow:hidden;text-overflow:ellipsis}";
|
|
4
4
|
n(css,{});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { ResourceEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
3
|
-
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
4
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
6
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
7
|
-
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
8
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
9
|
-
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
10
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
-
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
12
|
-
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
13
|
-
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
14
|
-
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
15
|
-
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
16
|
-
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { ResourceEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
3
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService";
|
|
4
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
6
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
7
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
8
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
9
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
10
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
12
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
13
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
14
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
15
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
16
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
17
17
|
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
18
|
-
import { IViewletViewOptions } from "@codingame/monaco-vscode-
|
|
19
|
-
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
20
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
18
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
19
|
+
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
20
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
21
21
|
export declare class BulkEditPane extends ViewPane {
|
|
22
22
|
private readonly _instaService;
|
|
23
23
|
private readonly _editorService;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { ButtonBar } from 'vscode/vscode/vs/base/browser/ui/button/button';
|
|
4
|
-
import { LRUCachedFunction, CachedFunction } from 'vscode/vscode/vs/base/common/cache';
|
|
5
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ButtonBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
4
|
+
import { LRUCachedFunction, CachedFunction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cache';
|
|
5
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
7
7
|
import './bulkEdit.css.js';
|
|
8
|
-
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
9
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
10
|
-
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
11
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
|
-
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
|
-
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
15
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
16
|
-
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
17
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
19
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
20
|
-
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
21
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
22
|
-
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
23
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
24
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
25
|
-
import { defaultButtonStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
26
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
8
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
9
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
|
+
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
11
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
|
+
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
15
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
16
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
17
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
19
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
20
|
+
import { WorkbenchAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
21
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
22
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
23
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
24
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
25
|
+
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
26
|
+
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
27
27
|
import { ResourceLabels } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/labels';
|
|
28
28
|
import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
29
|
-
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
29
|
+
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
30
30
|
import { BulkFileOperationType, BulkEditPreviewProvider, BulkFileOperations } from './bulkEditPreview.js';
|
|
31
31
|
import { compareBulkFileOperations, BulkEditDataSource, BulkEditDelegate, TextEditElementRenderer, FileElementRenderer, CategoryElementRenderer, BulkEditAccessibilityProvider, BulkEditIdentityProvider, BulkEditNaviLabelProvider, BulkEditSorter, FileElement, CategoryElement, TextEditElement } from './bulkEditTree.js';
|
|
32
|
-
import { SIDE_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
33
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
32
|
+
import { SIDE_GROUP, ACTIVE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
33
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
34
34
|
|
|
35
35
|
var BulkEditPane_1;
|
|
36
36
|
var State;
|
|
@@ -139,15 +139,15 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
139
139
|
const buttonBar = ( new ButtonBar(buttonsContainer));
|
|
140
140
|
this._disposables.add(buttonBar);
|
|
141
141
|
const btnConfirm = buttonBar.addButton({ supportIcons: true, ...defaultButtonStyles });
|
|
142
|
-
btnConfirm.label = ( localize(
|
|
142
|
+
btnConfirm.label = ( localize(4107, 'Apply'));
|
|
143
143
|
btnConfirm.onDidClick(() => this.accept(), this, this._disposables);
|
|
144
144
|
const btnCancel = buttonBar.addButton({ ...defaultButtonStyles, secondary: true });
|
|
145
|
-
btnCancel.label = ( localize(
|
|
145
|
+
btnCancel.label = ( localize(4108, 'Discard'));
|
|
146
146
|
btnCancel.onDidClick(() => this.discard(), this, this._disposables);
|
|
147
147
|
this._message = document.createElement('span');
|
|
148
148
|
this._message.className = 'message';
|
|
149
149
|
this._message.innerText = ( localize(
|
|
150
|
-
|
|
150
|
+
4109,
|
|
151
151
|
"Invoke a code action, like rename, to see a preview of its changes here."
|
|
152
152
|
));
|
|
153
153
|
parent.appendChild(this._message);
|
|
@@ -220,14 +220,14 @@ let BulkEditPane = class BulkEditPane extends ViewPane {
|
|
|
220
220
|
let message;
|
|
221
221
|
if (conflicts.length === 1) {
|
|
222
222
|
message = ( localize(
|
|
223
|
-
|
|
223
|
+
4110,
|
|
224
224
|
"Cannot apply refactoring because '{0}' has changed in the meantime.",
|
|
225
225
|
this._labelService.getUriLabel(conflicts[0], { relative: true })
|
|
226
226
|
));
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
229
|
message = ( localize(
|
|
230
|
-
|
|
230
|
+
4111,
|
|
231
231
|
"Cannot apply refactoring because {0} other files have changed in the meantime.",
|
|
232
232
|
conflicts.length
|
|
233
233
|
));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ITextModelContentProvider, ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
4
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
5
|
-
import { WorkspaceEditMetadata } from "vscode/vscode/vs/editor/common/languages";
|
|
6
|
-
import { ISingleEditOperation } from "vscode/vscode/vs/editor/common/core/editOperation";
|
|
7
|
-
import { ServicesAccessor, IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
9
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
1
|
+
import { ITextModelContentProvider, ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
4
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
5
|
+
import { WorkspaceEditMetadata } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
|
6
|
+
import { ISingleEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation";
|
|
7
|
+
import { ServicesAccessor, IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
9
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
10
10
|
import { ConflictDetector } from "../conflicts.js";
|
|
11
|
-
import { ResourceEdit, ResourceFileEdit, ResourceTextEdit } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
11
|
+
import { ResourceEdit, ResourceFileEdit, ResourceTextEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService";
|
|
12
12
|
export declare class CheckedStates<T extends object> {
|
|
13
13
|
private readonly _states;
|
|
14
14
|
private _checkedCount;
|
|
@@ -83,5 +83,5 @@ export declare class BulkEditPreviewProvider implements ITextModelContentProvide
|
|
|
83
83
|
private _init;
|
|
84
84
|
private _applyTextEditsToPreviewModel;
|
|
85
85
|
private _getOrCreatePreviewModel;
|
|
86
|
-
provideTextContent(previewUri: URI): Promise<import("vscode/vscode/vs/editor/common/model").ITextModel | null>;
|
|
86
|
+
provideTextContent(previewUri: URI): Promise<import("@codingame/monaco-vscode-api/vscode/vs/editor/common/model").ITextModel | null>;
|
|
87
87
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
4
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
6
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
7
|
-
import { createTextBufferFactoryFromSnapshot } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
8
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
-
import { coalesceInPlace } from 'vscode/vscode/vs/base/common/arrays';
|
|
10
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
11
|
-
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
12
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
14
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
4
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
5
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
6
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
7
|
+
import { createTextBufferFactoryFromSnapshot } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
|
|
8
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { coalesceInPlace } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
10
|
+
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
11
|
+
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
12
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
14
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
15
15
|
import { ConflictDetector } from '../conflicts.js';
|
|
16
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
17
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
18
|
-
import { extUri } from 'vscode/vscode/vs/base/common/resources';
|
|
19
|
-
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
20
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
21
|
-
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
22
|
-
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
23
|
-
import { MicrotaskDelay } from 'vscode/vscode/vs/base/common/symbols';
|
|
16
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
17
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
18
|
+
import { extUri } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
19
|
+
import { ResourceTextEdit, ResourceFileEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
20
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
21
|
+
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
22
|
+
import { SnippetParser } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
23
|
+
import { MicrotaskDelay } from '@codingame/monaco-vscode-api/vscode/vs/base/common/symbols';
|
|
24
24
|
|
|
25
25
|
var BulkFileOperations_1, BulkEditPreviewProvider_1;
|
|
26
26
|
class CheckedStates {
|
|
@@ -103,7 +103,7 @@ class BulkFileOperation {
|
|
|
103
103
|
}
|
|
104
104
|
class BulkCategory {
|
|
105
105
|
static { this._defaultMetadata = ( Object.freeze({
|
|
106
|
-
label: ( localize(
|
|
106
|
+
label: ( localize(4112, "Other")),
|
|
107
107
|
icon: Codicon.symbolFile,
|
|
108
108
|
needsConfirmation: false
|
|
109
109
|
})); }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IAsyncDataSource, ITreeRenderer, ITreeNode, ITreeSorter } from "vscode/vscode/vs/base/browser/ui/tree/tree";
|
|
2
|
-
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
3
|
-
import { FuzzyScore } from "vscode/vscode/vs/base/common/filters";
|
|
1
|
+
import { IAsyncDataSource, ITreeRenderer, ITreeNode, ITreeSorter } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
2
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService";
|
|
3
|
+
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
4
4
|
import { ResourceLabels } from "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/labels";
|
|
5
|
-
import { IIdentityProvider, IListVirtualDelegate, IKeyboardNavigationLabelProvider } from "vscode/vscode/vs/base/browser/ui/list/list";
|
|
5
|
+
import { IIdentityProvider, IListVirtualDelegate, IKeyboardNavigationLabelProvider } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
6
6
|
import { BulkFileOperations, BulkFileOperation, BulkTextEdit, BulkCategory } from "./bulkEditPreview.js";
|
|
7
|
-
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
8
|
-
import type { IListAccessibilityProvider } from "vscode/vscode/vs/base/browser/ui/list/listWidget";
|
|
9
|
-
import { IconLabel } from "vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel";
|
|
10
|
-
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
-
import { AriaRole } from "vscode/vscode/vs/base/browser/ui/aria/aria";
|
|
12
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
8
|
+
import type { IListAccessibilityProvider } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listWidget";
|
|
9
|
+
import { IconLabel } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabel";
|
|
10
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
+
import { AriaRole } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria";
|
|
12
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
13
|
export interface ICheckable {
|
|
14
14
|
isChecked(): boolean;
|
|
15
15
|
setChecked(value: boolean): void;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
4
|
-
import { createMatches } from 'vscode/vscode/vs/base/common/filters';
|
|
5
|
-
import { HighlightedLabel } from 'vscode/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
|
|
6
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
7
|
-
import { addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
8
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
-
import { TextModel } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
4
|
+
import { createMatches } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
|
|
5
|
+
import { HighlightedLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
|
|
6
|
+
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
7
|
+
import { addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
8
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { TextModel } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
|
|
10
10
|
import { BulkFileOperationType, BulkFileOperations } from './bulkEditPreview.js';
|
|
11
|
-
import { FileKind } from 'vscode/vscode/vs/platform/files/common/files';
|
|
12
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
14
|
-
import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel';
|
|
15
|
-
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
16
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
17
|
-
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
18
|
-
import { compare } from 'vscode/vscode/vs/base/common/strings';
|
|
19
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
20
|
-
import { ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
21
|
-
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
22
|
-
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
23
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
24
|
-
import { asCSSUrl } from 'vscode/vscode/vs/base/browser/cssValue';
|
|
11
|
+
import { FileKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
12
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
13
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
14
|
+
import { IconLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabel';
|
|
15
|
+
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
16
|
+
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
17
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
18
|
+
import { compare } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
19
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
20
|
+
import { ResourceFileEdit } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/bulkEditService';
|
|
21
|
+
import { PLAINTEXT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
22
|
+
import { SnippetParser } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
23
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
24
|
+
import { asCSSUrl } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/cssValue';
|
|
25
25
|
|
|
26
26
|
var CategoryElementRenderer_1, FileElementRenderer_1, TextEditElementRenderer_1;
|
|
27
27
|
class CategoryElement {
|
|
@@ -240,7 +240,7 @@ let BulkEditAccessibilityProvider = class BulkEditAccessibilityProvider {
|
|
|
240
240
|
this._labelService = _labelService;
|
|
241
241
|
}
|
|
242
242
|
getWidgetAriaLabel() {
|
|
243
|
-
return localize(
|
|
243
|
+
return localize(4113, "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
|
+
4114,
|
|
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
|
+
4115,
|
|
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
|
+
4116,
|
|
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
|
+
4117,
|
|
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
|
+
4118,
|
|
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
|
+
4119,
|
|
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
|
+
4120,
|
|
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
|
+
4121,
|
|
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
|
+
4122,
|
|
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
|
+
4123,
|
|
327
327
|
"line {0}, inserting {1}",
|
|
328
328
|
element.edit.textEdit.textEdit.range.startLineNumber,
|
|
329
329
|
element.selecting
|
|
@@ -429,7 +429,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
429
429
|
this._label.setResource({
|
|
430
430
|
resource: element.edit.uri,
|
|
431
431
|
name: ( localize(
|
|
432
|
-
|
|
432
|
+
4124,
|
|
433
433
|
"{0} → {1}",
|
|
434
434
|
this._labelService.getUriLabel(element.edit.uri, { relative: true }),
|
|
435
435
|
this._labelService.getUriLabel(element.edit.newUri, { relative: true })
|
|
@@ -437,7 +437,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
437
437
|
}, {
|
|
438
438
|
fileDecorations: { colors: true, badges: false }
|
|
439
439
|
});
|
|
440
|
-
this._details.innerText = ( localize(
|
|
440
|
+
this._details.innerText = ( localize(4125, "(renaming)"));
|
|
441
441
|
}
|
|
442
442
|
else {
|
|
443
443
|
const options = {
|
|
@@ -447,10 +447,10 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
447
447
|
extraClasses: []
|
|
448
448
|
};
|
|
449
449
|
if (element.edit.type & BulkFileOperationType.Create) {
|
|
450
|
-
this._details.innerText = ( localize(
|
|
450
|
+
this._details.innerText = ( localize(4126, "(creating)"));
|
|
451
451
|
}
|
|
452
452
|
else if (element.edit.type & BulkFileOperationType.Delete) {
|
|
453
|
-
this._details.innerText = ( localize(
|
|
453
|
+
this._details.innerText = ( localize(4127, "(deleting)"));
|
|
454
454
|
options.extraClasses.push('delete');
|
|
455
455
|
}
|
|
456
456
|
else {
|
|
@@ -527,7 +527,7 @@ let TextEditElementTemplate = class TextEditElementTemplate {
|
|
|
527
527
|
let title;
|
|
528
528
|
const { metadata } = element.edit.textEdit;
|
|
529
529
|
if (metadata && metadata.description) {
|
|
530
|
-
title = ( localize(
|
|
530
|
+
title = ( localize(4128, "{0} - {1}", metadata.label, metadata.description));
|
|
531
531
|
}
|
|
532
532
|
else if (metadata) {
|
|
533
533
|
title = metadata.label;
|