Skip to content

Commit 0e1ed93

Browse files
author
Benjamin Pasero
committed
Mac: Recent files should be split into files and folders (fixes microsoft#4167)
1 parent 52fe1e1 commit 0e1ed93

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/electron-main/menus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class VSCodeMenu {
224224
}
225225

226226
let mru = this.getOpenedPathsList();
227-
if (isFile || platform.isMacintosh /* on mac we don't treat files any different from folders */) {
227+
if (isFile) {
228228
mru.files.unshift(path);
229229
mru.files = arrays.distinct(mru.files, (f) => platform.isLinux ? f : f.toLowerCase());
230230
} else {

src/vs/workbench/electron-main/windows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export class WindowsManager {
719719
recentPaths = arrays.distinct(recentPaths);
720720

721721
// Make sure it is bounded
722-
return recentPaths.slice(0, 10);
722+
return recentPaths.slice(0, 20 /* max 10 files, 10 folders */);
723723
}
724724

725725
private toIPath(anyPath: string, ignoreFileNotFound?: boolean, gotoLineMode?: boolean): window.IPath {

0 commit comments

Comments
 (0)