Skip to content

Commit

Permalink
[plugin] wait for workspace to be ready
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
  • Loading branch information
svenefftinge committed Sep 24, 2019
1 parent aa8a423 commit 8119a88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/plugin-ext/src/hosted/browser/hosted-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,9 @@ export class HostedPluginSupport {
}
}

protected getStoragePath(): Promise<string | undefined> {
return this.pluginPathsService.getHostStoragePath(this.workspaceService.workspace, this.workspaceService.tryGetRoots());
protected async getStoragePath(): Promise<string | undefined> {
const roots = await this.workspaceService.roots;
return this.pluginPathsService.getHostStoragePath(this.workspaceService.workspace, roots);
}

async activateByEvent(activationEvent: string): Promise<void> {
Expand Down

0 comments on commit 8119a88

Please sign in to comment.