提交 42f70e6b 编写于 作者: B Benjamin Pasero

"open recent" polish

上级 9b4aa065
......@@ -377,7 +377,7 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
const selectedPick = picks[index];
if (typeof selectedPick.run === 'function') {
if (selectedPick && typeof selectedPick.run === 'function') {
selectedPick.run(context);
}
......
......@@ -13,6 +13,7 @@ import {Action} from 'vs/base/common/actions';
import {IWindowService} from 'vs/workbench/services/window/electron-browser/windowService';
import {IWorkbenchEditorService} from 'vs/workbench/services/editor/common/editorService';
import {EditorInput} from 'vs/workbench/common/editor';
import {isMacintosh} from 'vs/base/common/platform';
import {DiffEditorInput} from 'vs/workbench/common/editor/diffEditorInput';
import nls = require('vs/nls');
import {IMessageService, Severity} from 'vs/platform/message/common/message';
......@@ -410,7 +411,7 @@ export class OpenRecentAction extends Action {
return this.quickOpenService.pick(folderPicks.concat(...filePicks), {
autoFocus: { autoFocusFirstEntry: !hasWorkspace, autoFocusSecondEntry: hasWorkspace },
placeHolder: nls.localize('openRecentPlaceHolder', "Select a path to open"),
placeHolder: isMacintosh ? nls.localize('openRecentPlaceHolderMac', "Select a path (hold Cmd-key to open in new window)") : nls.localize('openRecentPlaceHolder', "Select a path to open (hold Ctrl-key to open in new window)"),
matchOnDescription: true
}).then(p => true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册