Skip to content

Commit 4300102

Browse files
jeanp413filiptronicek
authored andcommitted
💄
1 parent f4891dd commit 4300102

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/vs/server/node/remoteAgentEnvironmentImpl.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,20 @@ export class RemoteAgentEnvironmentChannel implements IServerChannel {
7777
const whenExtensionDownloaded = Promise.all(idsOrVSIX.map(async extension => {
7878
if (extension instanceof URI && extension.scheme !== Schemas.file) {
7979
const location = joinPath(URI.file(tmpdir()), generateUuid());
80-
await this._downloadService.download(extension, location);
80+
try {
81+
await this._downloadService.download(extension, location);
82+
} catch (e) {
83+
_logService.error(`Error downloading external vsix`, e);
84+
}
8185
return location;
8286
} else {
8387
return extension;
8488
}
8589
}));
8690
this.whenExtensionsReady
87-
.then(() => {
88-
whenExtensionDownloaded.then(idsOrVSIX => {
89-
extensionManagementCLI.installExtensions(idsOrVSIX, [], { isMachineScoped: !!_environmentService.args['do-not-sync'], installPreReleaseVersion: !!_environmentService.args['pre-release'] }, !!_environmentService.args['force']);
90-
}).then(null, error => {
91-
_logService.error(error);
92-
});
91+
.then(() => whenExtensionDownloaded.then(idsOrVSIX => extensionManagementCLI.installExtensions(idsOrVSIX, [], { isMachineScoped: !!_environmentService.args['do-not-sync'], installPreReleaseVersion: !!_environmentService.args['pre-release'] }, !!_environmentService.args['force'])))
92+
.then(null, error => {
93+
_logService.error(error);
9394
});
9495
}
9596

0 commit comments

Comments
 (0)