mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 17:52:34 -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:
@@ -551,6 +551,11 @@ export class Designer extends Disposable implements IThemable {
|
||||
this.handleEdit({ type: DesignerEditType.Update, path: propertyPath, value: args.value });
|
||||
}
|
||||
});
|
||||
input.onInputFocus(() => {
|
||||
if (!isMainView) {
|
||||
this._propertiesPane.updateDescription(componentDefinition);
|
||||
}
|
||||
});
|
||||
if (setWidth && inputProperties.width !== undefined) {
|
||||
input.width = inputProperties.width as number;
|
||||
}
|
||||
@@ -566,6 +571,11 @@ export class Designer extends Disposable implements IThemable {
|
||||
dropdown.onDidSelect((e) => {
|
||||
this.handleEdit({ type: DesignerEditType.Update, path: propertyPath, value: e.selected });
|
||||
});
|
||||
dropdown.onDidFocus(() => {
|
||||
if (!isMainView) {
|
||||
this._propertiesPane.updateDescription(componentDefinition);
|
||||
}
|
||||
});
|
||||
component = dropdown;
|
||||
break;
|
||||
case 'checkbox':
|
||||
@@ -578,6 +588,11 @@ export class Designer extends Disposable implements IThemable {
|
||||
checkbox.onChange((newValue) => {
|
||||
this.handleEdit({ type: DesignerEditType.Update, path: propertyPath, value: newValue });
|
||||
});
|
||||
checkbox.onFocus(() => {
|
||||
if (!isMainView) {
|
||||
this._propertiesPane.updateDescription(componentDefinition);
|
||||
}
|
||||
});
|
||||
component = checkbox;
|
||||
break;
|
||||
case 'table':
|
||||
|
||||
Reference in New Issue
Block a user