Refresh fix for Edit Data (#11710)

* hook in grid panel to edit data input through the editDataResultsInput

* added then at end of refreshGrid to ensure cell reset happens after refresh.

* abstraction

* Timeout removed as its causing issues with refreshing

* added await for dataRows

* Added working timeout for refresh

* removed spaces

* added comment explaining isRefresh

* Timeout set to 500 for better coverage.

Co-authored-by: Amir Omidi <amomidi@microsoft.com>
Co-authored-by: Anthony Dresser <andresse@microsoft.com>
This commit is contained in:
Alex Ma
2020-08-11 14:04:24 -07:00
committed by GitHub
parent aecb0efbc0
commit f45583c0f6
4 changed files with 40 additions and 18 deletions

View File

@@ -85,8 +85,10 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
this._register(
this._queryModelService.onEditSessionReady((result) => {
if (self.uri === result.ownerUri) {
self.initEditEnd(result);
if (this.uri === result.ownerUri) {
this._results.editDataGridPanel.onRefreshComplete.then(() => {
this.initEditEnd(result);
});
}
})
);