提交 6b2fcaaa 编写于 作者: D David Terry

show notification that menu bar can be shown with alt

上级 3013c922
......@@ -8,6 +8,7 @@
import * as path from 'path';
import * as platform from 'vs/base/common/platform';
import * as objects from 'vs/base/common/objects';
import nls = require('vs/nls');
import { IStorageService } from 'vs/code/electron-main/storage';
import { shell, screen, BrowserWindow, systemPreferences, app } from 'electron';
import { TPromise, TValueCallback } from 'vs/base/common/winjs.base';
......@@ -661,6 +662,8 @@ export class VSCodeWindow implements IVSCodeWindow {
case ('toggle'): {
this.win.setMenuBarVisibility(false);
this.win.setAutoHideMenuBar(true);
this.send('vscode:showInfoMessage', nls.localize('hiddenMenuBar', "You can still access the menu bar by pressing the **Alt** key."));
break;
}
case ('hidden'): {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册