Skip to content

Commit

Permalink
fix(@pvm/vcs): fix local mode need of platform api
Browse files Browse the repository at this point in the history
  • Loading branch information
SkReD committed Sep 15, 2022
1 parent 886ebf3 commit 7cc1ced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/pvm-vcs/lib/vcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ export class VcsPlatform implements VcsOnly {
}

async getUpdateHintsByCommit(commit: string): Promise<Record<string, any> | null> {
return await this.hostApi.run('platform.getUpdateHintsByCommit', commit) ?? null
if (!this._localMode) {
return await this.hostApi.run('platform.getUpdateHintsByCommit', commit) ?? null
}

return null
}
}

Expand Down

0 comments on commit 7cc1ced

Please sign in to comment.