mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
add back in listen for run query (#8481)
This commit is contained in:
committed by
Karl Burtram
parent
b631530753
commit
9ef6bec960
@@ -133,6 +133,14 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
|
||||
|
||||
this._text.onDidChangeDirty(() => this._onDidChangeDirty.fire());
|
||||
|
||||
this._register(
|
||||
this.queryModelService.onRunQueryStart(uri => {
|
||||
if (this.uri === uri) {
|
||||
this.onRunQuery();
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
this._register(
|
||||
this.queryModelService.onRunQueryComplete(uri => {
|
||||
if (this.uri === uri) {
|
||||
@@ -153,6 +161,8 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
|
||||
}
|
||||
}));
|
||||
|
||||
this.connectionManagementService.ensureDefaultLanguageFlavor(this.uri);
|
||||
|
||||
this.onDisconnect();
|
||||
this.onQueryComplete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user