mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
refresh the table designer after publishing (#18220)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user