refresh the table designer after publishing (#18220)

This commit is contained in:
Alan Ren
2022-02-04 09:32:07 -08:00
committed by GitHub
parent 83c6eee8e2
commit 4c49e1cd41
6 changed files with 24 additions and 3 deletions

View File

@@ -262,6 +262,9 @@ export class Designer extends Disposable implements IThemable {
this._inputDisposable.add(this._input.onStateChange((args) => {
this.handleInputStateChangedEvent(args);
}));
this._inputDisposable.add(this._input.onRefreshRequested(() => {
this.refresh();
}));
if (this._input.view === undefined) {
this._input.initialize();
@@ -369,6 +372,11 @@ export class Designer extends Disposable implements IThemable {
}
}
private refresh() {
this.updateComponentValues();
this.updatePropertiesPane(this._propertiesPane.objectPath);
}
private layoutTabbedPanel() {
this._tabbedPanel.layout(new DOM.Dimension(this._tabbedPanelContainer.clientWidth, this._tabbedPanelContainer.clientHeight));
}

View File

@@ -23,6 +23,11 @@ export interface DesignerComponentInput {
*/
readonly onEditProcessed: Event<DesignerEditProcessedEventArgs>;
/**
* The event that is triggerd when a refresh of the UI is requested.
*/
readonly onRefreshRequested: Event<void>;
/**
* Gets the object type display name.
*/