Skip to content

Commit

Permalink
Ensure download directory exists (#11486)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work authored Jul 29, 2022
1 parent 9da42cf commit 0c0f8c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vsx-registry/src/node/vsx-extension-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class VSXExtensionResolver implements PluginDeployerResolver {
}
}
const downloadPath = (await this.environment.getExtensionsDirUri()).path.fsPath();
await fs.ensureDir(downloadPath);
const extensionPath = path.resolve(downloadPath, path.basename(downloadUrl));
console.log(`[${resolvedId}]: trying to download from "${downloadUrl}"...`, 'to path', downloadPath);
if (!await this.download(downloadUrl, extensionPath)) {
Expand Down

0 comments on commit 0c0f8c7

Please sign in to comment.