mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user