mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix #119698
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user