Add graph icons to OE and TD (#18808)

* add graph icons to OE and TD

* PR comments

* change enum type

* change sub type to icon and make basic as default

* changed icontype to icon

* change default logic location

* change icon name to be more generic

* use right icons
This commit is contained in:
Aditya Bist
2022-04-01 00:27:59 -07:00
committed by GitHub
parent 27f014c70d
commit bab5118996
14 changed files with 205 additions and 13 deletions

View File

@@ -587,6 +587,7 @@ export function createAdsApiFactory(accessor: ServicesAccessor): IAdsExtensionAp
TableIndexProperty: sqlExtHostTypes.designers.TableIndexProperty,
TableIndexColumnSpecificationProperty: sqlExtHostTypes.designers.TableIndexColumnSpecificationProperty,
DesignerEditType: sqlExtHostTypes.designers.DesignerEditType,
TableIcon: sqlExtHostTypes.designers.TableIcon,
openTableDesigner(providerId, tableInfo: azdata.designers.TableInfo, telemetryInfo?: ITelemetryEventProperties): Promise<void> {
return extHostDataProvider.$openTableDesigner(providerId, tableInfo, telemetryInfo);
}

View File

@@ -544,6 +544,8 @@ export class SqlThemeIcon {
static readonly ExternalTable = new SqlThemeIcon('ExternalTable');
static readonly ColumnMasterKey = new SqlThemeIcon('ColumnMasterKey');
static readonly ColumnEncryptionKey = new SqlThemeIcon('ColumnEncryptionKey');
static readonly GraphEdge = new SqlThemeIcon('GraphEdge');
static readonly GraphNode = new SqlThemeIcon('GraphNode');
public readonly id: string;
@@ -1014,4 +1016,11 @@ export namespace designers {
Remove = 1,
Update = 2
}
export enum TableIcon {
Basic = 'Basic',
Temporal = 'Temporal',
GraphEdge = 'GraphEdge',
GraphNode = 'GraphNode'
}
}