Skip to content

Commit

Permalink
storage - 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Oct 17, 2018
1 parent 1a348aa commit bc94252
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/vs/workbench/electron-browser/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function openWorkbench(configuration: IWindowConfiguration): Promise<void> {

// Inform user about loading issues from the loader
(<any>self).require.config({
onError: (err: any) => {
onError: err => {
if (err.errorCode === 'load') {
shell.onUnexpectedError(new Error(nls.localize('loaderErrorNative', "Failed to load a required file. Please restart the application to try again. Details: {0}", JSON.stringify(err))));
}
Expand Down Expand Up @@ -166,15 +166,9 @@ function validateFolderUri(folderUri: ISingleFolderWorkspaceIdentifier, verbose:
}

function createStorageService(environmentService: IEnvironmentService, logService: ILogService): Promise<StorageService> {
perf.mark('willCreateStorageService');

const storageService = new StorageService(':memory:', logService, environmentService);

return storageService.init().then(() => {
perf.mark('didCreateStorageService');

return storageService;
});
return storageService.init().then(() => storageService);
}

function createStorageLegacyService(workspaceService: IWorkspaceContextService, environmentService: IEnvironmentService): IStorageLegacyService {
Expand All @@ -196,7 +190,7 @@ function createStorageLegacyService(workspaceService: IWorkspaceContextService,
secondaryWorkspaceId = workspace.ctime;
break;

// finaly, if we do not have a workspace open, we need to find another identifier for the window to store
// finally, if we do not have a workspace open, we need to find another identifier for the window to store
// workspace UI state. if we have a backup path in the configuration we can use that because this
// will be a unique identifier per window that is stable between restarts as long as there are
// dirty files in the workspace.
Expand Down

0 comments on commit bc94252

Please sign in to comment.