Addressed comments left in a merged PR (#17307)

This commit is contained in:
Leila Lali
2021-10-11 09:07:12 -07:00
committed by GitHub
parent 479bd10d02
commit d479c96658
3 changed files with 7 additions and 11 deletions

View File

@@ -561,14 +561,14 @@ export function isValidSQLPassword(password: string, userName: string = 'sa'): b
export async function showErrorMessageWithOutputChannel(errorMessageFunc: (error: string) => string, error: any, outputChannel: vscode.OutputChannel): Promise<void> {
const result = await vscode.window.showErrorMessage(errorMessageFunc(getErrorMessage(error)), constants.checkoutOutputMessage);
if (result !== undefined) {
if (result === constants.checkoutOutputMessage) {
outputChannel.show();
}
}
export async function showInfoMessageWithOutputChannel(message: string, outputChannel: vscode.OutputChannel): Promise<void> {
const result = await vscode.window.showInformationMessage(message, constants.checkoutOutputMessage);
if (result !== undefined) {
if (result === constants.checkoutOutputMessage) {
outputChannel.show();
}
}