Update error dialog to include instructions text for SSL cert validation failure (#21036)

This commit is contained in:
Cheena Malhotra
2022-11-01 09:59:50 -07:00
committed by GitHub
parent 1de199dbd6
commit f5a3a9ad8c
7 changed files with 94 additions and 19 deletions

View File

@@ -24,6 +24,9 @@ export const passwordChars = '***************';
/* default authentication type setting name*/
export const defaultAuthenticationType = 'defaultAuthenticationType';
/* Connection Properties */
export const trustServerCertificate = 'trustServerCertificate';
/**
* Well-known Authentication types commonly supported by connection providers.
*/

View File

@@ -10,5 +10,15 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
export const IErrorMessageService = createDecorator<IErrorMessageService>('errorMessageService');
export interface IErrorMessageService {
_serviceBrand: undefined;
showDialog(severity: Severity, headerTitle: string, message: string, messageDetails?: string, actions?: IAction[]): void;
/**
* Shows error dialog with given parameters
* @param severity Severity of the error
* @param headerTitle Title to show on Error modal dialog
* @param message Message containng error message
* @param messageDetails Message details containing stacktrace along with error message
* @param actions Custom actions to display on the error message dialog
* @param instructionText Spcial instructions to display to user when displaying error message
* @param readMoreLink External link to read more about the instructions.
*/
showDialog(severity: Severity, headerTitle: string, message: string, messageDetails?: string, actions?: IAction[], instructionText?: string, readMoreLink?: string): void;
}