Skip to content

Commit

Permalink
Mac: Recent files should be split into files and folders (fixes #4167)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Mar 24, 2016
1 parent 52fe1e1 commit 0e1ed93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/electron-main/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/electron-main/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0e1ed93

Please sign in to comment.