Skip to content

Commit

Permalink
workspace storage should store per location (fixes #904)
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Efftinge <[email protected]>
  • Loading branch information
svenefftinge committed Nov 29, 2017
1 parent 595e943 commit d0568c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/workspace/src/browser/workspace-storage-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ export class WorkspaceStorageService implements StorageService {
constructor( @inject(WorkspaceService) protected workspaceService: WorkspaceService,
@inject(ILogger) protected logger: ILogger) {
this.initialized = this.workspaceService.root.then(stat => {
const loc = window.location.toString();
if (stat) {
this.prefix = stat.uri;
this.prefix = loc + stat.uri;
} else {
this.prefix = '_global_';
this.prefix = loc + '_global_';
}
});
this.storageService = new LocalStorageService(this.logger);
Expand Down

0 comments on commit d0568c8

Please sign in to comment.