MarkedString.fromPlainText(localize('windowTitle.description',"Controls the window title based on the active editor. Variables are substituted based on the context:")),
MarkedString.fromPlainText(localize('windowTitle.activeEditorName',"$(activeEditorName): e.g. myFile.txt")),
MarkedString.fromPlainText(localize('windowTitle.activeFilePath',"$(activeFilePath): e.g. /Users/Development/myProject/myFile.txt")),
MarkedString.fromPlainText(localize('windowTitle.rootName',"$(rootName): e.g. myProject")),
MarkedString.fromPlainText(localize('windowTitle.rootPath',"$(rootPath): e.g. /Users/Development/myProject")),
MarkedString.fromPlainText(localize('windowTitle.appName',"$(appName): e.g. VS Code")),
MarkedString.fromPlainText(localize('windowTitle.dirty',"$(dirty): a dirty indicator if the active editor is dirty")),
MarkedString.fromPlainText(localize('windowTitle.separator',"$(separator): a conditional separator (\" - \") that only shows when surrounded by variables with values"))
assert.strictEqual(labels.template(t,{dirty:'',activeEditorName:'',rootName:'',appName:'Visual Studio Code',separator:{label:' - '}}),'Visual Studio Code');
assert.strictEqual(labels.template(t,{dirty:'',activeEditorName:'',rootName:'monaco',appName:'Visual Studio Code',separator:{label:' - '}}),'monaco - Visual Studio Code');
assert.strictEqual(labels.template(t,{dirty:'',activeEditorName:'somefile.txt',rootName:'monaco',appName:'Visual Studio Code',separator:{label:' - '}}),'somefile.txt - monaco - Visual Studio Code');
assert.strictEqual(labels.template(t,{dirty:'* ',activeEditorName:'somefile.txt',rootName:'monaco',appName:'Visual Studio Code',separator:{label:' - '}}),'* somefile.txt - monaco - Visual Studio Code');
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(CloseEditorAction,CloseEditorAction.ID,CloseEditorAction.LABEL,closeEditorOrWindowKeybindings),'View: Close Editor',viewCategory);
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(ToggleFullScreenAction,ToggleFullScreenAction.ID,ToggleFullScreenAction.LABEL,{primary:KeyCode.F11,mac:{primary:KeyMod.CtrlCmd|KeyMod.WinCtrl|KeyCode.KEY_F}}),'View: Toggle Full Screen',viewCategory);
if(platform.isWindows||platform.isLinux){
if(isWindows||isLinux){
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(ToggleMenuBarAction,ToggleMenuBarAction.ID,ToggleMenuBarAction.LABEL),'View: Toggle Menu Bar',viewCategory);
}
...
...
@@ -234,10 +234,18 @@ Note that there can still be cases where this setting is ignored (e.g. when usin
'default':0,
'description':nls.localize('zoomLevel',"Adjust the zoom level of the window. The original size is 0 and each increment above (e.g. 1) or below (e.g. -1) represents zooming 20% larger or smaller. You can also enter decimals to adjust the zoom level with a finer granularity.")
},
'window.showFullPath':{
'type':'boolean',
'default':false,
'description':nls.localize('showFullPath',"If enabled, will show the full path of opened files in the window title.")