diff --git a/src/vs/workbench/electron-main/menus.ts b/src/vs/workbench/electron-main/menus.ts index 4e2b69ef2a62b..e8d961cbd94db 100644 --- a/src/vs/workbench/electron-main/menus.ts +++ b/src/vs/workbench/electron-main/menus.ts @@ -224,7 +224,7 @@ export class VSCodeMenu { } let mru = this.getOpenedPathsList(); - if (isFile || platform.isMacintosh /* on mac we don't treat files any different from folders */) { + if (isFile) { mru.files.unshift(path); mru.files = arrays.distinct(mru.files, (f) => platform.isLinux ? f : f.toLowerCase()); } else { diff --git a/src/vs/workbench/electron-main/windows.ts b/src/vs/workbench/electron-main/windows.ts index ed39e7625f0a4..21fc4742a4221 100644 --- a/src/vs/workbench/electron-main/windows.ts +++ b/src/vs/workbench/electron-main/windows.ts @@ -719,7 +719,7 @@ export class WindowsManager { recentPaths = arrays.distinct(recentPaths); // Make sure it is bounded - return recentPaths.slice(0, 10); + return recentPaths.slice(0, 20 /* max 10 files, 10 folders */); } private toIPath(anyPath: string, ignoreFileNotFound?: boolean, gotoLineMode?: boolean): window.IPath {