make commit id part of the cached data path, #23883

This commit is contained in:
Johannes Rieken
2017-04-05 09:21:02 +02:00
parent 8a241feed4
commit 510aaf6fb0
4 changed files with 10 additions and 4 deletions

View File

@@ -371,7 +371,7 @@ function createPaths(environmentService: IEnvironmentService): TPromise<any> {
environmentService.extensionsPath,
environmentService.nodeCachedDataDir
];
return TPromise.join(paths.map(p => mkdirp(p))) as TPromise<any>;
return TPromise.join(paths.map(p => p && mkdirp(p))) as TPromise<any>;
}
function createServices(args: ParsedArgs): IInstantiationService {

View File

@@ -730,7 +730,7 @@ export class WindowsManager implements IWindowsMainService {
configuration.filesToOpen = filesToOpen;
configuration.filesToCreate = filesToCreate;
configuration.filesToDiff = filesToDiff;
configuration.nodeCachedDataDir = this.environmentService.isBuilt && this.environmentService.nodeCachedDataDir;
configuration.nodeCachedDataDir = this.environmentService.nodeCachedDataDir;
return configuration;
}