mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix edit data close (#8657)
This commit is contained in:
@@ -121,10 +121,6 @@ export class EditDataEditor extends BaseEditor {
|
|||||||
super.clearInput();
|
super.clearInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
public close(): void {
|
|
||||||
this.editDataInput.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to create the editor in the parent element.
|
* Called to create the editor in the parent element.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -202,6 +202,10 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public dispose(): void {
|
public dispose(): void {
|
||||||
|
// Dispose our edit session then disconnect our input
|
||||||
|
this._queryModelService.disposeEdit(this.uri).then(() => {
|
||||||
|
return this._connectionManagementService.disconnectEditor(this, true);
|
||||||
|
});
|
||||||
this._queryModelService.disposeQuery(this.uri);
|
this._queryModelService.disposeQuery(this.uri);
|
||||||
this._sql.dispose();
|
this._sql.dispose();
|
||||||
this._results.dispose();
|
this._results.dispose();
|
||||||
@@ -209,15 +213,6 @@ export class EditDataInput extends EditorInput implements IConnectableInput {
|
|||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public close(): void {
|
|
||||||
// Dispose our edit session then disconnect our input
|
|
||||||
this._queryModelService.disposeEdit(this.uri).then(() => {
|
|
||||||
return this._connectionManagementService.disconnectEditor(this, true);
|
|
||||||
}).then(() => {
|
|
||||||
this.dispose();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public get tabColor(): string {
|
public get tabColor(): string {
|
||||||
return this._connectionManagementService.getTabColorForUri(this.uri);
|
return this._connectionManagementService.getTabColorForUri(this.uri);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user