提交 e6dfed8f 编写于 作者: S Sandeep Somavarapu

Fix microsoft/vscode-remote-release/issues/1106

上级 4de0e4d2
......@@ -395,6 +395,11 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
default: {
'pub.name': 'ui'
}
},
'remote.downloadExtensionsLocally': {
type: 'boolean',
markdownDescription: nls.localize('remote.downloadExtensionsLocally', "When enabled extensions are downloaded locally and installed on remote."),
default: false
}
}
});
......
......@@ -48,6 +48,10 @@ export class RemoteExtensionManagementChannelClient extends ExtensionManagementC
}
private async doInstallFromGallery(extension: IGalleryExtension): Promise<ILocalExtension> {
if (this.configurationService.getValue<boolean>('remote.downloadExtensionsLocally')) {
this.logService.trace(`Download '${extension.identifier.id}' extension locally and install`);
return this.downloadCompatibleAndInstall(extension);
}
try {
const local = await super.installFromGallery(extension);
return local;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册