This commit is contained in:
Sandeep Somavarapu 2021-03-24 09:29:41 +01:00
parent 8437d38d36
commit c6a8cb7f09

View file

@ -123,8 +123,8 @@ export class PromptExtensionInstallFailureAction extends Action {
if (this.error.name === INSTALL_ERROR_NOT_SUPPORTED) {
const productName = isWeb ? localize({ key: 'vscode web', comment: ['VS Code Web is the name of the product'] }, "VS Code Web") : this.productService.nameLong;
const message = localize('cannot be installed', "The '{0}' extension is not available in {1}. Click 'More Information' to learn more.", this.extension.displayName || this.extension.identifier.id, productName);
const result = await this.dialogService.show(Severity.Info, message, [localize('more information', "More Information"), localize('ok', "OK")]);
if (result.choice === 0) {
const result = await this.dialogService.show(Severity.Info, message, [localize('close', "Close"), localize('more information', "More Information")], { cancelId: 0 });
if (result.choice === 1) {
this.openerService.open(isWeb ? URI.parse('https://aka.ms/vscode-remote-codespaces') : URI.parse('https://aka.ms/vscode-remote'));
}
return;