@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common 20.0.1 → 20.1.1
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 +9 -9
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.1.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package (chat, editor, explorer, interactive, notebook, output, search, view-common)",
|
6
6
|
"keywords": [],
|
@@ -15,14 +15,14 @@
|
|
15
15
|
},
|
16
16
|
"type": "module",
|
17
17
|
"dependencies": {
|
18
|
-
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.
|
19
|
-
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.
|
20
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.
|
21
|
-
"@codingame/monaco-vscode-api": "20.
|
22
|
-
"@codingame/monaco-vscode-bd0792ac-6043-5ec3-a41a-54ccb922a1f4-common": "20.
|
23
|
-
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.
|
24
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.
|
25
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.
|
18
|
+
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.1.1",
|
19
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.1.1",
|
20
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.1.1",
|
21
|
+
"@codingame/monaco-vscode-api": "20.1.1",
|
22
|
+
"@codingame/monaco-vscode-bd0792ac-6043-5ec3-a41a-54ccb922a1f4-common": "20.1.1",
|
23
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.1.1",
|
24
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.1.1",
|
25
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.1.1"
|
26
26
|
},
|
27
27
|
"exports": {
|
28
28
|
".": {
|
@@ -36,7 +36,7 @@ const CONFLICT_RESOLUTION_CONTEXT = 'saveConflictResolutionContext';
|
|
36
36
|
const CONFLICT_RESOLUTION_SCHEME = 'conflictResolution';
|
37
37
|
const LEARN_MORE_DIRTY_WRITE_IGNORE_KEY = 'learnMoreDirtyWriteError';
|
38
38
|
const conflictEditorHelp = ( localize(
|
39
|
-
|
39
|
+
7246,
|
40
40
|
"Use the actions in the editor tool bar to either undo your changes or overwrite the content of the file with your changes."
|
41
41
|
));
|
42
42
|
let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable {
|
@@ -99,7 +99,7 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
99
99
|
}
|
100
100
|
else {
|
101
101
|
message = ( localize(
|
102
|
-
|
102
|
+
7247,
|
103
103
|
"Failed to save '{0}': The content of the file is newer. Please compare your version with the file contents or overwrite the content of the file with your changes.",
|
104
104
|
basename(resource)
|
105
105
|
));
|
@@ -127,18 +127,18 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
127
127
|
if (isWriteLocked) {
|
128
128
|
if (triedToUnlock && canSaveElevated) {
|
129
129
|
message = isWindows ? ( localize(
|
130
|
-
|
130
|
+
7248,
|
131
131
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
|
132
132
|
basename(resource)
|
133
133
|
)) : ( localize(
|
134
|
-
|
134
|
+
7249,
|
135
135
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
|
136
136
|
basename(resource)
|
137
137
|
));
|
138
138
|
}
|
139
139
|
else {
|
140
140
|
message = ( localize(
|
141
|
-
|
141
|
+
7250,
|
142
142
|
"Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
|
143
143
|
basename(resource)
|
144
144
|
));
|
@@ -146,18 +146,18 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
146
146
|
}
|
147
147
|
else if (canSaveElevated && isPermissionDenied) {
|
148
148
|
message = isWindows ? ( localize(
|
149
|
-
|
149
|
+
7251,
|
150
150
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
|
151
151
|
basename(resource)
|
152
152
|
)) : ( localize(
|
153
|
-
|
153
|
+
7252,
|
154
154
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
|
155
155
|
basename(resource)
|
156
156
|
));
|
157
157
|
}
|
158
158
|
else {
|
159
159
|
message = ( localize(
|
160
|
-
|
160
|
+
7253,
|
161
161
|
"Failed to save '{0}': {1}",
|
162
162
|
basename(resource),
|
163
163
|
toErrorMessage(error, false)
|
@@ -197,7 +197,7 @@ function clearPendingResolveSaveConflictMessages() {
|
|
197
197
|
}
|
198
198
|
let ResolveConflictLearnMoreAction = class ResolveConflictLearnMoreAction extends Action {
|
199
199
|
constructor(openerService) {
|
200
|
-
super('workbench.files.action.resolveConflictLearnMore', ( localize(
|
200
|
+
super('workbench.files.action.resolveConflictLearnMore', ( localize(7254, "Learn More")));
|
201
201
|
this.openerService = openerService;
|
202
202
|
}
|
203
203
|
async run() {
|
@@ -209,7 +209,7 @@ ResolveConflictLearnMoreAction = ( __decorate([
|
|
209
209
|
], ResolveConflictLearnMoreAction));
|
210
210
|
let DoNotShowResolveConflictLearnMoreAction = class DoNotShowResolveConflictLearnMoreAction extends Action {
|
211
211
|
constructor(storageService) {
|
212
|
-
super('workbench.files.action.resolveConflictLearnMoreDoNotShowAgain', ( localize(
|
212
|
+
super('workbench.files.action.resolveConflictLearnMoreDoNotShowAgain', ( localize(7255, "Don't Show Again")));
|
213
213
|
this.storageService = storageService;
|
214
214
|
}
|
215
215
|
async run(notification) {
|
@@ -222,7 +222,7 @@ DoNotShowResolveConflictLearnMoreAction = ( __decorate([
|
|
222
222
|
], DoNotShowResolveConflictLearnMoreAction));
|
223
223
|
let ResolveSaveConflictAction = class ResolveSaveConflictAction extends Action {
|
224
224
|
constructor(model, editorService, notificationService, instantiationService, productService) {
|
225
|
-
super('workbench.files.action.resolveConflict', ( localize(
|
225
|
+
super('workbench.files.action.resolveConflict', ( localize(7256, "Compare")));
|
226
226
|
this.model = model;
|
227
227
|
this.editorService = editorService;
|
228
228
|
this.notificationService = notificationService;
|
@@ -234,7 +234,7 @@ let ResolveSaveConflictAction = class ResolveSaveConflictAction extends Action {
|
|
234
234
|
const resource = this.model.resource;
|
235
235
|
const name = basename(resource);
|
236
236
|
const editorLabel = ( localize(
|
237
|
-
|
237
|
+
7257,
|
238
238
|
"{0} (in file) ↔ {1} (in {2}) - Resolve save conflict",
|
239
239
|
name,
|
240
240
|
name,
|
@@ -262,7 +262,7 @@ ResolveSaveConflictAction = ( __decorate([
|
|
262
262
|
], ResolveSaveConflictAction));
|
263
263
|
class SaveModelElevatedAction extends Action {
|
264
264
|
constructor(model, options, triedToUnlock) {
|
265
|
-
super('workbench.files.action.saveModelElevated', triedToUnlock ? isWindows ? ( localize(
|
265
|
+
super('workbench.files.action.saveModelElevated', triedToUnlock ? isWindows ? ( localize(7258, "Overwrite as Admin...")) : ( localize(7259, "Overwrite as Sudo...")) : isWindows ? ( localize(7260, "Retry as Admin...")) : ( localize(7261, "Retry as Sudo...")));
|
266
266
|
this.model = model;
|
267
267
|
this.options = options;
|
268
268
|
this.triedToUnlock = triedToUnlock;
|
@@ -280,7 +280,7 @@ class SaveModelElevatedAction extends Action {
|
|
280
280
|
}
|
281
281
|
class RetrySaveModelAction extends Action {
|
282
282
|
constructor(model, options) {
|
283
|
-
super('workbench.files.action.saveModel', ( localize(
|
283
|
+
super('workbench.files.action.saveModel', ( localize(7262, "Retry")));
|
284
284
|
this.model = model;
|
285
285
|
this.options = options;
|
286
286
|
}
|
@@ -292,7 +292,7 @@ class RetrySaveModelAction extends Action {
|
|
292
292
|
}
|
293
293
|
class RevertModelAction extends Action {
|
294
294
|
constructor(model) {
|
295
|
-
super('workbench.files.action.revertModel', ( localize(
|
295
|
+
super('workbench.files.action.revertModel', ( localize(7263, "Revert")));
|
296
296
|
this.model = model;
|
297
297
|
}
|
298
298
|
async run() {
|
@@ -335,7 +335,7 @@ SaveModelAsAction = ( __decorate([
|
|
335
335
|
], SaveModelAsAction));
|
336
336
|
class UnlockModelAction extends Action {
|
337
337
|
constructor(model, options) {
|
338
|
-
super('workbench.files.action.unlock', ( localize(
|
338
|
+
super('workbench.files.action.unlock', ( localize(7264, "Overwrite")));
|
339
339
|
this.model = model;
|
340
340
|
this.options = options;
|
341
341
|
}
|
@@ -347,7 +347,7 @@ class UnlockModelAction extends Action {
|
|
347
347
|
}
|
348
348
|
class SaveModelIgnoreModifiedSinceAction extends Action {
|
349
349
|
constructor(model, options) {
|
350
|
-
super('workbench.files.action.saveIgnoreModifiedSince', ( localize(
|
350
|
+
super('workbench.files.action.saveIgnoreModifiedSince', ( localize(7264, "Overwrite")));
|
351
351
|
this.model = model;
|
352
352
|
this.options = options;
|
353
353
|
}
|
@@ -359,7 +359,7 @@ class SaveModelIgnoreModifiedSinceAction extends Action {
|
|
359
359
|
}
|
360
360
|
let ConfigureSaveConflictAction = class ConfigureSaveConflictAction extends Action {
|
361
361
|
constructor(preferencesService) {
|
362
|
-
super('workbench.files.action.configureSaveConflict', ( localize(
|
362
|
+
super('workbench.files.action.configureSaveConflict', ( localize(7265, "Configure")));
|
363
363
|
this.preferencesService = preferencesService;
|
364
364
|
}
|
365
365
|
async run() {
|
@@ -122,15 +122,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
122
122
|
});
|
123
123
|
const copyPathCommand = {
|
124
124
|
id: COPY_PATH_COMMAND_ID,
|
125
|
-
title: ( localize(
|
125
|
+
title: ( localize(7279, "Copy Path"))
|
126
126
|
};
|
127
127
|
const copyRelativePathCommand = {
|
128
128
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
129
|
-
title: ( localize(
|
129
|
+
title: ( localize(7280, "Copy Relative Path"))
|
130
130
|
};
|
131
131
|
const revealInSideBarCommand = {
|
132
132
|
id: REVEAL_IN_EXPLORER_COMMAND_ID,
|
133
|
-
title: ( localize(
|
133
|
+
title: ( localize(7281, "Reveal in Explorer View"))
|
134
134
|
};
|
135
135
|
appendEditorTitleContextMenuItem(COPY_PATH_COMMAND_ID, copyPathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
136
136
|
appendEditorTitleContextMenuItem(COPY_RELATIVE_PATH_COMMAND_ID, copyRelativePathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
@@ -144,8 +144,8 @@ function appendEditorTitleContextMenuItem(id, title, when, group, supportsMultiS
|
|
144
144
|
order,
|
145
145
|
});
|
146
146
|
}
|
147
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(
|
148
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(
|
147
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(7282, "Use your changes and overwrite file contents")), Codicon.check, -10, acceptLocalChangesCommand);
|
148
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(7283, "Discard your changes and revert to file contents")), Codicon.discard, -9, revertLocalChangesCommand);
|
149
149
|
function appendSaveConflictEditorTitleAction(id, title, icon, order, command) {
|
150
150
|
CommandsRegistry.registerCommand(id, command);
|
151
151
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
@@ -168,12 +168,12 @@ function appendToCommandPalette({ id, title, category, metadata }, when) {
|
|
168
168
|
}
|
169
169
|
appendToCommandPalette({
|
170
170
|
id: COPY_PATH_COMMAND_ID,
|
171
|
-
title: ( localize2(
|
171
|
+
title: ( localize2(7284, "Copy Path of Active File")),
|
172
172
|
category: Categories.File
|
173
173
|
});
|
174
174
|
appendToCommandPalette({
|
175
175
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
176
|
-
title: ( localize2(
|
176
|
+
title: ( localize2(7285, "Copy Relative Path of Active File")),
|
177
177
|
category: Categories.File
|
178
178
|
});
|
179
179
|
appendToCommandPalette({
|
@@ -188,26 +188,26 @@ appendToCommandPalette({
|
|
188
188
|
});
|
189
189
|
appendToCommandPalette({
|
190
190
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
191
|
-
title: ( localize2(
|
191
|
+
title: ( localize2(7286, "Save All in Group")),
|
192
192
|
category: Categories.File
|
193
193
|
});
|
194
194
|
appendToCommandPalette({
|
195
195
|
id: SAVE_FILES_COMMAND_ID,
|
196
|
-
title: ( localize2(
|
196
|
+
title: ( localize2(7287, "Save All Files")),
|
197
197
|
category: Categories.File
|
198
198
|
});
|
199
199
|
appendToCommandPalette({
|
200
200
|
id: REVERT_FILE_COMMAND_ID,
|
201
|
-
title: ( localize2(
|
201
|
+
title: ( localize2(7288, "Revert File")),
|
202
202
|
category: Categories.File
|
203
203
|
});
|
204
204
|
appendToCommandPalette({
|
205
205
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
206
|
-
title: ( localize2(
|
206
|
+
title: ( localize2(7289, "Compare Active File with Saved")),
|
207
207
|
category: Categories.File,
|
208
208
|
metadata: {
|
209
209
|
description: ( localize2(
|
210
|
-
|
210
|
+
7290,
|
211
211
|
"Opens a new diff editor to compare the active file with the version on disk."
|
212
212
|
))
|
213
213
|
}
|
@@ -226,7 +226,7 @@ appendToCommandPalette({
|
|
226
226
|
id: NEW_FOLDER_COMMAND_ID,
|
227
227
|
title: NEW_FOLDER_LABEL,
|
228
228
|
category: Categories.File,
|
229
|
-
metadata: { description: ( localize2(
|
229
|
+
metadata: { description: ( localize2(7291, "Create a new folder or directory")) }
|
230
230
|
}, ( WorkspaceFolderCountContext.notEqualsTo('0')));
|
231
231
|
appendToCommandPalette({
|
232
232
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
@@ -236,7 +236,7 @@ appendToCommandPalette({
|
|
236
236
|
const isFileOrUntitledResourceContextKey = ( ContextKeyExpr.or(ResourceContextKey.IsFileSystemResource, ( ResourceContextKey.Scheme.isEqualTo(Schemas.untitled))));
|
237
237
|
const openToSideCommand = {
|
238
238
|
id: OPEN_TO_SIDE_COMMAND_ID,
|
239
|
-
title: ( localize(
|
239
|
+
title: ( localize(7292, "Open to the Side"))
|
240
240
|
};
|
241
241
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
242
242
|
group: 'navigation',
|
@@ -249,7 +249,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
249
249
|
order: 10,
|
250
250
|
command: {
|
251
251
|
id: REOPEN_WITH_COMMAND_ID,
|
252
|
-
title: ( localize(
|
252
|
+
title: ( localize(7293, "Reopen Editor With..."))
|
253
253
|
},
|
254
254
|
when: ( ContextKeyExpr.and(
|
255
255
|
ActiveEditorAvailableEditorIdsContext, (
|
@@ -287,7 +287,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
287
287
|
order: 20,
|
288
288
|
command: {
|
289
289
|
id: REVERT_FILE_COMMAND_ID,
|
290
|
-
title: ( localize(
|
290
|
+
title: ( localize(7288, "Revert File")),
|
291
291
|
precondition: OpenEditorsDirtyEditorContext
|
292
292
|
},
|
293
293
|
when: ( ContextKeyExpr.and((
|
@@ -301,7 +301,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
301
301
|
order: 30,
|
302
302
|
command: {
|
303
303
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
304
|
-
title: ( localize(
|
304
|
+
title: ( localize(7294, "Save All")),
|
305
305
|
precondition: DirtyWorkingCopiesContext
|
306
306
|
},
|
307
307
|
when: OpenEditorsGroupContext
|
@@ -311,14 +311,14 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
311
311
|
order: 10,
|
312
312
|
command: {
|
313
313
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
314
|
-
title: ( localize(
|
314
|
+
title: ( localize(7295, "Compare with Saved")),
|
315
315
|
precondition: OpenEditorsDirtyEditorContext
|
316
316
|
},
|
317
317
|
when: ( ContextKeyExpr.and(ResourceContextKey.IsFileSystemResource, ( AutoSaveAfterShortDelayContext.toNegated()), ( WorkbenchListDoubleSelection.toNegated())))
|
318
318
|
});
|
319
319
|
const compareResourceCommand = {
|
320
320
|
id: COMPARE_RESOURCE_COMMAND_ID,
|
321
|
-
title: ( localize(
|
321
|
+
title: ( localize(7296, "Compare with Selected"))
|
322
322
|
};
|
323
323
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
324
324
|
group: '3_compare',
|
@@ -333,7 +333,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
333
333
|
});
|
334
334
|
const selectForCompareCommand = {
|
335
335
|
id: SELECT_FOR_COMPARE_COMMAND_ID,
|
336
|
-
title: ( localize(
|
336
|
+
title: ( localize(7297, "Select for Compare"))
|
337
337
|
};
|
338
338
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
339
339
|
group: '3_compare',
|
@@ -347,7 +347,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
347
347
|
});
|
348
348
|
const compareSelectedCommand = {
|
349
349
|
id: COMPARE_SELECTED_COMMAND_ID,
|
350
|
-
title: ( localize(
|
350
|
+
title: ( localize(7298, "Compare Selected"))
|
351
351
|
};
|
352
352
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
353
353
|
group: '3_compare',
|
@@ -374,7 +374,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
374
374
|
order: 10,
|
375
375
|
command: {
|
376
376
|
id: CLOSE_EDITOR_COMMAND_ID,
|
377
|
-
title: ( localize(
|
377
|
+
title: ( localize(7299, "Close"))
|
378
378
|
},
|
379
379
|
when: ( OpenEditorsGroupContext.toNegated())
|
380
380
|
});
|
@@ -383,7 +383,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
383
383
|
order: 20,
|
384
384
|
command: {
|
385
385
|
id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID,
|
386
|
-
title: ( localize(
|
386
|
+
title: ( localize(7300, "Close Others"))
|
387
387
|
},
|
388
388
|
when: ( OpenEditorsGroupContext.toNegated())
|
389
389
|
});
|
@@ -392,7 +392,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
392
392
|
order: 30,
|
393
393
|
command: {
|
394
394
|
id: CLOSE_SAVED_EDITORS_COMMAND_ID,
|
395
|
-
title: ( localize(
|
395
|
+
title: ( localize(7301, "Close Saved"))
|
396
396
|
}
|
397
397
|
});
|
398
398
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
@@ -400,7 +400,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
400
400
|
order: 40,
|
401
401
|
command: {
|
402
402
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
403
|
-
title: ( localize(
|
403
|
+
title: ( localize(7302, "Close All"))
|
404
404
|
}
|
405
405
|
});
|
406
406
|
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
@@ -434,7 +434,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
434
434
|
order: 20,
|
435
435
|
command: {
|
436
436
|
id: OPEN_WITH_EXPLORER_COMMAND_ID,
|
437
|
-
title: ( localize(
|
437
|
+
title: ( localize(7303, "Open With...")),
|
438
438
|
},
|
439
439
|
when: ( ContextKeyExpr.and(( ExplorerFolderContext.toNegated()), ExplorerResourceAvailableEditorIdsContext)),
|
440
440
|
});
|
@@ -461,7 +461,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
461
461
|
order: 8,
|
462
462
|
command: {
|
463
463
|
id: CUT_FILE_ID,
|
464
|
-
title: ( localize(
|
464
|
+
title: ( localize(7304, "Cut")),
|
465
465
|
},
|
466
466
|
when: ( ContextKeyExpr.and(( ExplorerRootContext.toNegated()), ExplorerResourceWritableContext))
|
467
467
|
});
|
@@ -557,7 +557,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
557
557
|
},
|
558
558
|
alt: {
|
559
559
|
id: DELETE_FILE_ID,
|
560
|
-
title: ( localize(
|
560
|
+
title: ( localize(7305, "Delete Permanently"))
|
561
561
|
},
|
562
562
|
when: ( ContextKeyExpr.and(( ExplorerRootContext.toNegated()), ExplorerResourceMoveableToTrash))
|
563
563
|
});
|
@@ -566,19 +566,19 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
566
566
|
order: 20,
|
567
567
|
command: {
|
568
568
|
id: DELETE_FILE_ID,
|
569
|
-
title: ( localize(
|
569
|
+
title: ( localize(7305, "Delete Permanently"))
|
570
570
|
},
|
571
571
|
when: ( ContextKeyExpr.and(( ExplorerRootContext.toNegated()), ( ExplorerResourceMoveableToTrash.toNegated())))
|
572
572
|
});
|
573
573
|
for (const menuId of [MenuId.EmptyEditorGroupContext, MenuId.EditorTabsBarContext]) {
|
574
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(
|
575
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(
|
574
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(7306, "New Text File")) }, group: '1_file', order: 10 });
|
575
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(7307, "Open File...")) }, group: '1_file', order: 20 });
|
576
576
|
}
|
577
577
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
578
578
|
group: '1_new',
|
579
579
|
command: {
|
580
580
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
581
|
-
title: ( localize(
|
581
|
+
title: ( localize(7308, "&&New Text File"))
|
582
582
|
},
|
583
583
|
order: 1
|
584
584
|
});
|
@@ -586,7 +586,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
586
586
|
group: '4_save',
|
587
587
|
command: {
|
588
588
|
id: SAVE_FILE_COMMAND_ID,
|
589
|
-
title: ( localize(
|
589
|
+
title: ( localize(7309, "&&Save")),
|
590
590
|
precondition: ( ContextKeyExpr.or(ActiveEditorContext, ( ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))))
|
591
591
|
},
|
592
592
|
order: 1
|
@@ -595,7 +595,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
595
595
|
group: '4_save',
|
596
596
|
command: {
|
597
597
|
id: SAVE_FILE_AS_COMMAND_ID,
|
598
|
-
title: ( localize(
|
598
|
+
title: ( localize(7310, "Save &&As...")),
|
599
599
|
precondition: ( ContextKeyExpr.or(ActiveEditorContext, ( ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))))
|
600
600
|
},
|
601
601
|
order: 2
|
@@ -604,7 +604,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
604
604
|
group: '4_save',
|
605
605
|
command: {
|
606
606
|
id: SAVE_ALL_COMMAND_ID,
|
607
|
-
title: ( localize(
|
607
|
+
title: ( localize(7311, "Save A&&ll")),
|
608
608
|
precondition: DirtyWorkingCopiesContext
|
609
609
|
},
|
610
610
|
order: 3
|
@@ -613,7 +613,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
613
613
|
group: '5_autosave',
|
614
614
|
command: {
|
615
615
|
id: ToggleAutoSaveAction.ID,
|
616
|
-
title: ( localize(
|
616
|
+
title: ( localize(7312, "A&&uto Save")),
|
617
617
|
toggled: ( ContextKeyExpr.notEquals('config.files.autoSave', 'off'))
|
618
618
|
},
|
619
619
|
order: 1
|
@@ -622,7 +622,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
622
622
|
group: '6_close',
|
623
623
|
command: {
|
624
624
|
id: REVERT_FILE_COMMAND_ID,
|
625
|
-
title: ( localize(
|
625
|
+
title: ( localize(7313, "Re&&vert File")),
|
626
626
|
precondition: ( ContextKeyExpr.or((
|
627
627
|
ContextKeyExpr.and(ActiveEditorCanRevertContext)), (
|
628
628
|
ContextKeyExpr.and(( ResourceContextKey.Scheme.notEqualsTo(Schemas.untitled)), FoldersViewVisibleContext, SidebarFocusContext)))),
|
@@ -633,7 +633,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
633
633
|
group: '6_close',
|
634
634
|
command: {
|
635
635
|
id: CLOSE_EDITOR_COMMAND_ID,
|
636
|
-
title: ( localize(
|
636
|
+
title: ( localize(7314, "&&Close Editor")),
|
637
637
|
precondition: ( ContextKeyExpr.or(ActiveEditorContext, ( ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))))
|
638
638
|
},
|
639
639
|
order: 2
|
@@ -642,7 +642,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
642
642
|
group: '3_global_nav',
|
643
643
|
command: {
|
644
644
|
id: 'workbench.action.quickOpen',
|
645
|
-
title: ( localize(
|
645
|
+
title: ( localize(7315, "Go to &&File..."))
|
646
646
|
},
|
647
647
|
order: 1
|
648
648
|
});
|
@@ -135,7 +135,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
135
135
|
const uri = getResourceForCommand(resource, editorService, listService);
|
136
136
|
if (uri && fileService.hasProvider(uri)) {
|
137
137
|
const name = basename(uri);
|
138
|
-
const editorLabel = ( localize(
|
138
|
+
const editorLabel = ( localize(7415, "{0} (in file) ↔ {1}", name, name));
|
139
139
|
try {
|
140
140
|
await TextFileContentProvider.open(uri, COMPARE_WITH_SAVED_SCHEMA, editorLabel, editorService, { pinned: true });
|
141
141
|
if (registerEditorListener) {
|
@@ -453,7 +453,7 @@ CommandsRegistry.registerCommand({
|
|
453
453
|
const editorService = accessor.get(IEditorService);
|
454
454
|
const dialogService = accessor.get(IFileDialogService);
|
455
455
|
const fileService = accessor.get(IFileService);
|
456
|
-
const createFileLocalized = ( localize(
|
456
|
+
const createFileLocalized = ( localize(7416, "Create File"));
|
457
457
|
const defaultFileUri = joinPath(await dialogService.defaultFilePath(), args?.fileName ?? 'Untitled.txt');
|
458
458
|
const saveUri = await dialogService.showSaveDialog({ saveLabel: createFileLocalized, title: createFileLocalized, defaultUri: defaultFileUri });
|
459
459
|
if (!saveUri) {
|
@@ -39,7 +39,7 @@ if (CutAction) {
|
|
39
39
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
40
40
|
command: {
|
41
41
|
id: CutAction.id,
|
42
|
-
title: ( localize(
|
42
|
+
title: ( localize(12279, "Cut")),
|
43
43
|
},
|
44
44
|
group: '5_cutcopypaste',
|
45
45
|
order: 1,
|
@@ -50,7 +50,7 @@ if (CopyAction) {
|
|
50
50
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
51
51
|
command: {
|
52
52
|
id: CopyAction.id,
|
53
|
-
title: ( localize(
|
53
|
+
title: ( localize(12280, "Copy")),
|
54
54
|
},
|
55
55
|
group: '5_cutcopypaste',
|
56
56
|
order: 2,
|
@@ -61,7 +61,7 @@ if (PasteAction) {
|
|
61
61
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
62
62
|
command: {
|
63
63
|
id: PasteAction.id,
|
64
|
-
title: ( localize(
|
64
|
+
title: ( localize(12281, "Paste")),
|
65
65
|
},
|
66
66
|
group: '5_cutcopypaste',
|
67
67
|
order: 3,
|