highlight problematic property in the designer when error is selected (#18512)

* navigate to property when selecting error message

* use list component

* highlight problematic property

* remove unnecessary call

* comment

* comment
This commit is contained in:
Alan Ren
2022-02-21 20:49:12 -08:00
committed by GitHub
parent 3c84575755
commit 40ee82ee3e
7 changed files with 301 additions and 35 deletions

View File

@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as azdata from 'azdata';
import { DesignerViewModel, DesignerEdit, DesignerComponentInput, DesignerView, DesignerTab, DesignerDataPropertyInfo, DropDownProperties, DesignerTableProperties, DesignerEditProcessedEventArgs, DesignerAction, DesignerStateChangedEventArgs, DesignerEditPath, DesignerValidationError } from 'sql/workbench/browser/designer/interfaces';
import { DesignerViewModel, DesignerEdit, DesignerComponentInput, DesignerView, DesignerTab, DesignerDataPropertyInfo, DropDownProperties, DesignerTableProperties, DesignerEditProcessedEventArgs, DesignerAction, DesignerStateChangedEventArgs, DesignerPropertyPath, DesignerValidationError } from 'sql/workbench/browser/designer/interfaces';
import { TableDesignerProvider } from 'sql/workbench/services/tableDesigner/common/interface';
import { localize } from 'vs/nls';
import { designers } from 'sql/workbench/api/common/sqlExtHostTypes';
@@ -658,7 +658,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
b. ['propertyName1',index-1,'proper
The return values would be the propertyNames followed by slashes in level order. Eg.: propertyName1/propertyName2/...
*/
private getObjectTypeFromPath(path: DesignerEditPath): string {
private getObjectTypeFromPath(path: DesignerPropertyPath): string {
let typeArray = [];
for (let i = 0; i < path.length; i++) {
if (i % 2 === 0) {