more cleanup

This commit is contained in:
Benjamin Pasero
2016-08-17 14:55:53 +02:00
parent 89a234b9f0
commit ffd210a7a5
4 changed files with 4 additions and 15 deletions
-4
View File
@@ -90,10 +90,6 @@ export interface IPath {
export interface IWindowConfiguration extends ICommandLineArguments {
// TODO@Ben things to still clean up
appSettingsHome: string;
userExtensionsHome: string;
// Used to configure the workbench when opening
workspacePath?: string;
recentFiles: string[];
+3 -5
View File
@@ -726,16 +726,14 @@ export class WindowsManager implements IWindowsService {
private toConfiguration(userEnv: IProcessEnvironment, cli: ICommandLineArguments, workspacePath?: string, filesToOpen?: IPath[], filesToCreate?: IPath[], filesToDiff?: IPath[], extensionsToInstall?: string[]): IWindowConfiguration {
let configuration: IWindowConfiguration = mixin({}, cli); // inherit all properties from CLI
configuration.appRoot = this.envService.appRoot;
configuration.execPath = process.execPath;
configuration.userEnv = userEnv;
configuration.workspacePath = workspacePath;
configuration.filesToOpen = filesToOpen;
configuration.filesToCreate = filesToCreate;
configuration.filesToDiff = filesToDiff;
configuration.extensionsToInstall = extensionsToInstall;
configuration.appRoot = this.envService.appRoot;
configuration.execPath = process.execPath;
configuration.appSettingsHome = this.envService.appSettingsHome;
configuration.userExtensionsHome = this.envService.userExtensionsHome;
configuration.userEnv = userEnv;
const recents = this.getRecentlyOpenedPaths(workspacePath, filesToOpen);
configuration.recentFiles = recents.files;