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

@@ -44,9 +44,9 @@ export interface DesignerComponentInput {
readonly viewModel: DesignerViewModel;
/**
* Gets the validation errors.
* Gets the issues.
*/
readonly validationErrors: DesignerValidationError[] | undefined;
readonly issues: DesignerIssue[] | undefined;
/**
* Start initilizing the designer input object.
@@ -229,12 +229,13 @@ export type DesignerUIArea = 'PropertiesView' | 'ScriptView' | 'TopContentView'
export type DesignerPropertyPath = (string | number)[];
export const DesignerRootObjectPath: DesignerPropertyPath = [];
export type DesignerValidationError = { message: string, propertyPath?: DesignerPropertyPath };
export type DesignerIssueSeverity = 'error' | 'warning' | 'information';
export type DesignerIssue = { description: string, propertyPath?: DesignerPropertyPath, severity: DesignerIssueSeverity };
export interface DesignerEditResult {
isValid: boolean;
refreshView?: boolean;
errors?: DesignerValidationError[];
issues?: DesignerIssue[];
}
export interface DesignerTextEditor {