@@ -61,9 +61,9 @@ import { Categories } from 'vs/platform/action/common/actionCommonCategories';
61
61
import { ILocalizedString } from 'vs/platform/action/common/action' ;
62
62
63
63
export const NEW_FILE_COMMAND_ID = 'explorer.newFile' ;
64
- export const NEW_FILE_LABEL = nls . localize ( 'newFile' , "New File..." ) ;
64
+ export const NEW_FILE_LABEL = nls . localize2 ( 'newFile' , "New File..." ) ;
65
65
export const NEW_FOLDER_COMMAND_ID = 'explorer.newFolder' ;
66
- export const NEW_FOLDER_LABEL = nls . localize ( 'newFolder' , "New Folder..." ) ;
66
+ export const NEW_FOLDER_LABEL = nls . localize2 ( 'newFolder' , "New Folder..." ) ;
67
67
export const TRIGGER_RENAME_LABEL = nls . localize ( 'rename' , "Rename..." ) ;
68
68
export const MOVE_FILE_TO_TRASH_LABEL = nls . localize ( 'delete' , "Delete" ) ;
69
69
export const COPY_FILE_LABEL = nls . localize ( 'copyFile' , "Copy" ) ;
@@ -481,12 +481,12 @@ async function askForOverwrite(fileService: IFileService, dialogService: IDialog
481
481
export class GlobalCompareResourcesAction extends Action2 {
482
482
483
483
static readonly ID = 'workbench.files.action.compareFileWith' ;
484
- static readonly LABEL = nls . localize ( 'globalCompareFile' , "Compare Active File With..." ) ;
484
+ static readonly LABEL = nls . localize2 ( 'globalCompareFile' , "Compare Active File With..." ) ;
485
485
486
486
constructor ( ) {
487
487
super ( {
488
488
id : GlobalCompareResourcesAction . ID ,
489
- title : { value : GlobalCompareResourcesAction . LABEL , original : 'Compare Active File With...' } ,
489
+ title : GlobalCompareResourcesAction . LABEL ,
490
490
f1 : true ,
491
491
category : Categories . File ,
492
492
precondition : ActiveEditorContext
@@ -609,12 +609,12 @@ export class CloseGroupAction extends Action {
609
609
export class FocusFilesExplorer extends Action2 {
610
610
611
611
static readonly ID = 'workbench.files.action.focusFilesExplorer' ;
612
- static readonly LABEL = nls . localize ( 'focusFilesExplorer' , "Focus on Files Explorer" ) ;
612
+ static readonly LABEL = nls . localize2 ( 'focusFilesExplorer' , "Focus on Files Explorer" ) ;
613
613
614
614
constructor ( ) {
615
615
super ( {
616
616
id : FocusFilesExplorer . ID ,
617
- title : { value : FocusFilesExplorer . LABEL , original : 'Focus on Files Explorer' } ,
617
+ title : FocusFilesExplorer . LABEL ,
618
618
f1 : true ,
619
619
category : Categories . File
620
620
} ) ;
@@ -629,12 +629,12 @@ export class FocusFilesExplorer extends Action2 {
629
629
export class ShowActiveFileInExplorer extends Action2 {
630
630
631
631
static readonly ID = 'workbench.files.action.showActiveFileInExplorer' ;
632
- static readonly LABEL = nls . localize ( 'showInExplorer' , "Reveal Active File in Explorer View" ) ;
632
+ static readonly LABEL = nls . localize2 ( 'showInExplorer' , "Reveal Active File in Explorer View" ) ;
633
633
634
634
constructor ( ) {
635
635
super ( {
636
636
id : ShowActiveFileInExplorer . ID ,
637
- title : { value : ShowActiveFileInExplorer . LABEL , original : 'Reveal Active File in Explorer View' } ,
637
+ title : ShowActiveFileInExplorer . LABEL ,
638
638
f1 : true ,
639
639
category : Categories . File
640
640
} ) ;
@@ -653,13 +653,13 @@ export class ShowActiveFileInExplorer extends Action2 {
653
653
export class OpenActiveFileInEmptyWorkspace extends Action2 {
654
654
655
655
static readonly ID = 'workbench.action.files.showOpenedFileInNewWindow' ;
656
- static readonly LABEL = nls . localize ( 'openFileInEmptyWorkspace' , "Open Active File in New Empty Workspace" ) ;
656
+ static readonly LABEL = nls . localize2 ( 'openFileInEmptyWorkspace' , "Open Active File in New Empty Workspace" ) ;
657
657
658
658
constructor (
659
659
) {
660
660
super ( {
661
661
id : OpenActiveFileInEmptyWorkspace . ID ,
662
- title : { value : OpenActiveFileInEmptyWorkspace . LABEL , original : 'Open Active File in New Empty Workspace' } ,
662
+ title : OpenActiveFileInEmptyWorkspace . LABEL ,
663
663
f1 : true ,
664
664
category : Categories . File ,
665
665
precondition : EmptyWorkspaceSupportContext
@@ -763,12 +763,12 @@ function getWellFormedFileName(filename: string): string {
763
763
export class CompareNewUntitledTextFilesAction extends Action2 {
764
764
765
765
static readonly ID = 'workbench.files.action.compareNewUntitledTextFiles' ;
766
- static readonly LABEL = nls . localize ( 'compareNewUntitledTextFiles' , "Compare New Untitled Text Files" ) ;
766
+ static readonly LABEL = nls . localize2 ( 'compareNewUntitledTextFiles' , "Compare New Untitled Text Files" ) ;
767
767
768
768
constructor ( ) {
769
769
super ( {
770
770
id : CompareNewUntitledTextFilesAction . ID ,
771
- title : { value : CompareNewUntitledTextFilesAction . LABEL , original : 'Compare New Untitled Text Files' } ,
771
+ title : CompareNewUntitledTextFilesAction . LABEL ,
772
772
f1 : true ,
773
773
category : Categories . File
774
774
} ) ;
@@ -788,15 +788,15 @@ export class CompareNewUntitledTextFilesAction extends Action2 {
788
788
export class CompareWithClipboardAction extends Action2 {
789
789
790
790
static readonly ID = 'workbench.files.action.compareWithClipboard' ;
791
- static readonly LABEL = nls . localize ( 'compareWithClipboard' , "Compare Active File with Clipboard" ) ;
791
+ static readonly LABEL = nls . localize2 ( 'compareWithClipboard' , "Compare Active File with Clipboard" ) ;
792
792
793
793
private registrationDisposal : IDisposable | undefined ;
794
794
private static SCHEME_COUNTER = 0 ;
795
795
796
796
constructor ( ) {
797
797
super ( {
798
798
id : CompareWithClipboardAction . ID ,
799
- title : { value : CompareWithClipboardAction . LABEL , original : 'Compare Active File with Clipboard' } ,
799
+ title : CompareWithClipboardAction . LABEL ,
800
800
f1 : true ,
801
801
category : Categories . File ,
802
802
keybinding : { primary : KeyChord ( KeyMod . CtrlCmd | KeyCode . KeyK , KeyCode . KeyC ) , weight : KeybindingWeight . WorkbenchContrib }
@@ -1261,12 +1261,12 @@ class BaseSetActiveEditorReadonlyInSession extends Action2 {
1261
1261
export class SetActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
1262
1262
1263
1263
static readonly ID = 'workbench.action.files.setActiveEditorReadonlyInSession' ;
1264
- static readonly LABEL = nls . localize ( 'setActiveEditorReadonlyInSession' , "Set Active Editor Read-only in Session" ) ;
1264
+ static readonly LABEL = nls . localize2 ( 'setActiveEditorReadonlyInSession' , "Set Active Editor Read-only in Session" ) ;
1265
1265
1266
1266
constructor ( ) {
1267
1267
super (
1268
1268
SetActiveEditorReadonlyInSession . ID ,
1269
- { value : SetActiveEditorReadonlyInSession . LABEL , original : 'Set Active Editor Readonly in Session' } ,
1269
+ SetActiveEditorReadonlyInSession . LABEL ,
1270
1270
true
1271
1271
) ;
1272
1272
}
@@ -1275,12 +1275,12 @@ export class SetActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonl
1275
1275
export class SetActiveEditorWriteableInSession extends BaseSetActiveEditorReadonlyInSession {
1276
1276
1277
1277
static readonly ID = 'workbench.action.files.setActiveEditorWriteableInSession' ;
1278
- static readonly LABEL = nls . localize ( 'setActiveEditorWriteableInSession' , "Set Active Editor Writeable in Session" ) ;
1278
+ static readonly LABEL = nls . localize2 ( 'setActiveEditorWriteableInSession' , "Set Active Editor Writeable in Session" ) ;
1279
1279
1280
1280
constructor ( ) {
1281
1281
super (
1282
1282
SetActiveEditorWriteableInSession . ID ,
1283
- { value : SetActiveEditorWriteableInSession . LABEL , original : 'Set Active Editor Writeable in Session' } ,
1283
+ SetActiveEditorWriteableInSession . LABEL ,
1284
1284
false
1285
1285
) ;
1286
1286
}
@@ -1289,12 +1289,12 @@ export class SetActiveEditorWriteableInSession extends BaseSetActiveEditorReadon
1289
1289
export class ToggleActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
1290
1290
1291
1291
static readonly ID = 'workbench.action.files.toggleActiveEditorReadonlyInSession' ;
1292
- static readonly LABEL = nls . localize ( 'toggleActiveEditorReadonlyInSession' , "Toggle Active Editor Read-only in Session" ) ;
1292
+ static readonly LABEL = nls . localize2 ( 'toggleActiveEditorReadonlyInSession' , "Toggle Active Editor Read-only in Session" ) ;
1293
1293
1294
1294
constructor ( ) {
1295
1295
super (
1296
1296
ToggleActiveEditorReadonlyInSession . ID ,
1297
- { value : ToggleActiveEditorReadonlyInSession . LABEL , original : 'Toggle Active Editor Readonly in Session' } ,
1297
+ ToggleActiveEditorReadonlyInSession . LABEL ,
1298
1298
'toggle'
1299
1299
) ;
1300
1300
}
@@ -1303,12 +1303,12 @@ export class ToggleActiveEditorReadonlyInSession extends BaseSetActiveEditorRead
1303
1303
export class ResetActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
1304
1304
1305
1305
static readonly ID = 'workbench.action.files.resetActiveEditorReadonlyInSession' ;
1306
- static readonly LABEL = nls . localize ( 'resetActiveEditorReadonlyInSession' , "Reset Active Editor Read-only in Session" ) ;
1306
+ static readonly LABEL = nls . localize2 ( 'resetActiveEditorReadonlyInSession' , "Reset Active Editor Read-only in Session" ) ;
1307
1307
1308
1308
constructor ( ) {
1309
1309
super (
1310
1310
ResetActiveEditorReadonlyInSession . ID ,
1311
- { value : ResetActiveEditorReadonlyInSession . LABEL , original : 'Reset Active Editor Readonly in Session' } ,
1311
+ ResetActiveEditorReadonlyInSession . LABEL ,
1312
1312
'reset'
1313
1313
) ;
1314
1314
}
0 commit comments