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:
Aditya Bist
2021-11-16 14:50:05 -08:00
committed by GitHub
parent 6725e07ece
commit 2a127beb28
8 changed files with 119 additions and 1 deletions

View File

@@ -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':