mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51: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._text.onDidChangeDirty(() => this._onDidChangeDirty.fire());
|
||||||
|
|
||||||
|
this._register(
|
||||||
|
this.queryModelService.onRunQueryStart(uri => {
|
||||||
|
if (this.uri === uri) {
|
||||||
|
this.onRunQuery();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
this._register(
|
this._register(
|
||||||
this.queryModelService.onRunQueryComplete(uri => {
|
this.queryModelService.onRunQueryComplete(uri => {
|
||||||
if (this.uri === 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.onDisconnect();
|
||||||
this.onQueryComplete();
|
this.onQueryComplete();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user