Update pop-up to be an error message instead of informational message (#16660)

* Update pop-up to be an error message

* Update message text

* Address comment

* Address comment
This commit is contained in:
Sakshi Sharma
2021-08-10 15:24:09 -07:00
committed by GitHub
parent b99be156ad
commit e0143e0752
2 changed files with 7 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ export class NetCoreTool {
public async findOrInstallNetCore(): Promise<boolean> {
if ((!this.isNetCoreInstallationPresent || !await this.isNetCoreVersionSupported())) {
if (vscode.workspace.getConfiguration(DBProjectConfigurationKey)[NetCoreDoNotAskAgainKey] !== true) {
await this.showInstallDialog();
this.showInstallDialog(); // Removing await so that Build and extension load process doesn't wait on user input
}
return false;
}
@@ -66,9 +66,9 @@ export class NetCoreTool {
public async showInstallDialog(): Promise<void> {
let result;
if (this.netCoreInstallState === netCoreInstallState.netCoreNotPresent) {
result = await vscode.window.showInformationMessage(NetCoreInstallationConfirmation, UpdateNetCoreLocation, InstallNetCore, DoNotAskAgain);
result = await vscode.window.showErrorMessage(NetCoreInstallationConfirmation, UpdateNetCoreLocation, InstallNetCore, DoNotAskAgain);
} else {
result = await vscode.window.showInformationMessage(NetCoreSupportedVersionInstallationConfirmation(this.netCoreSdkInstalledVersion!), UpdateNetCoreLocation, InstallNetCore, DoNotAskAgain);
result = await vscode.window.showErrorMessage(NetCoreSupportedVersionInstallationConfirmation(this.netCoreSdkInstalledVersion!), UpdateNetCoreLocation, InstallNetCore, DoNotAskAgain);
}
if (result === UpdateNetCoreLocation) {