提交 9e73da89 编写于 作者: B Benjamin Pasero

do not add diff files to recent list for now

上级 cc226c05
......@@ -674,7 +674,7 @@ export class WindowsManager {
configuration.releaseNotesUrl = env.product.releaseNotesUrl;
configuration.updateFeedUrl = UpdateManager.feedUrl;
configuration.updateChannel = UpdateManager.channel;
configuration.recentPaths = this.getRecentlyOpenedPaths(workspacePath, filesToOpen, filesToDiff);
configuration.recentPaths = this.getRecentlyOpenedPaths(workspacePath, filesToOpen);
configuration.aiConfig = env.product.aiConfig;
configuration.sendASmile = env.product.sendASmile;
configuration.enableTelemetry = env.product.enableTelemetry;
......@@ -683,7 +683,7 @@ export class WindowsManager {
return configuration;
}
private getRecentlyOpenedPaths(workspacePath?: string, filesToOpen?: window.IPath[], filesToDiff?: window.IPath[]): string[] {
private getRecentlyOpenedPaths(workspacePath?: string, filesToOpen?: window.IPath[]): string[] {
// Get from storage
let openedPathsList = storage.getItem<IOpenedPathsList>(WindowsManager.openedPathsListStorageKey);
......@@ -698,10 +698,6 @@ export class WindowsManager {
recentPaths.unshift(...filesToOpen.map(f => f.filePath));
}
if (filesToDiff) {
recentPaths.unshift(...filesToDiff.map(f => f.filePath));
}
// Add current workspace path to beginning if set
if (workspacePath) {
recentPaths.unshift(workspacePath);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册