mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 01:25:36 -05:00
Designer: property descriptions (#17668)
* format * added strings * format doc * use codicon instead * show descriptions in property pane only * fix ssdt string bug * fix overflow option * review comments * review comments * changes
This commit is contained in:
@@ -10,6 +10,7 @@ import { localize } from 'vs/nls';
|
||||
import { designers } from 'sql/workbench/api/common/sqlExtHostTypes';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
|
||||
import { ColumnPropertyDescriptions, TablePropertyDescriptions } from 'sql/workbench/services/tableDesigner/browser/tableDesignerStrings';
|
||||
import { deepClone, equals } from 'vs/base/common/objects';
|
||||
|
||||
export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
@@ -149,6 +150,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
{
|
||||
componentType: 'dropdown',
|
||||
propertyName: designers.TableProperty.Schema,
|
||||
description: TablePropertyDescriptions.SCHEMA,
|
||||
componentProperties: <DropDownProperties>{
|
||||
title: localize('tableDesigner.schemaTitle', "Schema"),
|
||||
values: designerInfo.schemas
|
||||
@@ -156,6 +158,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableProperty.Description,
|
||||
description: TablePropertyDescriptions.DESCRIPTION,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.descriptionTitle', "Description")
|
||||
}
|
||||
@@ -175,6 +178,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
{
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.Name,
|
||||
description: ColumnPropertyDescriptions.NAME,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnNameTitle', "Name"),
|
||||
width: 150
|
||||
@@ -182,6 +186,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'dropdown',
|
||||
propertyName: designers.TableColumnProperty.Type,
|
||||
description: ColumnPropertyDescriptions.DATA_TYPE,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnTypeTitle', "Type"),
|
||||
width: 100,
|
||||
@@ -190,6 +195,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.Length,
|
||||
description: ColumnPropertyDescriptions.LENGTH,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnLengthTitle', "Length"),
|
||||
width: 60
|
||||
@@ -197,6 +203,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.DefaultValue,
|
||||
description: ColumnPropertyDescriptions.DEFAULT_VALUE_OR_BINDING,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnDefaultValueTitle', "Default Value"),
|
||||
width: 150
|
||||
@@ -204,18 +211,21 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'checkbox',
|
||||
propertyName: designers.TableColumnProperty.AllowNulls,
|
||||
description: ColumnPropertyDescriptions.ALLOW_NULLS,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnAllowNullTitle', "Allow Nulls"),
|
||||
}
|
||||
}, {
|
||||
componentType: 'checkbox',
|
||||
propertyName: designers.TableColumnProperty.IsPrimaryKey,
|
||||
description: ColumnPropertyDescriptions.PRIMARY_KEY,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnIsPrimaryKeyTitle', "Primary Key"),
|
||||
}
|
||||
}, {
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.Precision,
|
||||
description: ColumnPropertyDescriptions.PRECISION,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnPrecisionTitle', "Precision"),
|
||||
width: 60
|
||||
@@ -223,6 +233,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
}, {
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.Scale,
|
||||
description: ColumnPropertyDescriptions.NAME,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.columnScaleTitle', "Scale"),
|
||||
width: 60
|
||||
@@ -273,6 +284,7 @@ export class TableDesignerComponentInput implements DesignerComponentInput {
|
||||
components: [{
|
||||
componentType: 'input',
|
||||
propertyName: designers.TableColumnProperty.Name,
|
||||
description: TablePropertyDescriptions.NAME,
|
||||
componentProperties: {
|
||||
title: localize('tableDesigner.nameTitle', "Table name"),
|
||||
width: 200
|
||||
|
||||
Reference in New Issue
Block a user