mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Addressed comments left in a merged PR (#17307)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user