add severity support for issues (#18761)

* add severity support for issues

* vbump STS

* pr comments
This commit is contained in:
Alan Ren
2022-03-17 14:09:02 -07:00
committed by GitHub
parent aeb4e87c1f
commit 9f2940e8f8
8 changed files with 195 additions and 160 deletions

View File

@@ -1061,6 +1061,14 @@ declare module 'azdata' {
*/
export type DesignerEditPath = (string | number)[];
/**
* Severity of the messages returned by the provider after processing an edit.
* 'error': The issue must be fixed in order to commit the changes.
* 'warning': Inform the user the potential risks with the current state. e.g. Having multiple edge constraints is only useful as a temporary state.
* 'information': Informational message.
*/
export type DesignerIssueSeverity = 'error' | 'warning' | 'information';
/**
* The result returned by the table designer provider after handling an edit request.
*/
@@ -1078,9 +1086,9 @@ declare module 'azdata' {
*/
isValid: boolean;
/**
* Error messages of current state, and the property the caused the error.
* Issues of current state.
*/
errors?: { message: string, propertyPath?: DesignerEditPath }[];
issues?: { severity: DesignerIssueSeverity, description: string, propertyPath?: DesignerEditPath }[];
}
/**