mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
Handle qp clear input correctly (#3258)
* handle clearing xml in qp view * formatting
This commit is contained in:
@@ -103,13 +103,15 @@ export class QueryPlan {
|
||||
public set xml(xml: string) {
|
||||
this._xml = xml;
|
||||
new Builder(this.container).empty();
|
||||
QP.showPlan(this.container, this._xml, {
|
||||
jsTooltips: false
|
||||
});
|
||||
(<any>this.container.querySelectorAll('div.qp-tt')).forEach(toolTip => {
|
||||
toolTip.classList.add('monaco-editor');
|
||||
toolTip.classList.add('monaco-editor-hover');
|
||||
});
|
||||
if (this.xml) {
|
||||
QP.showPlan(this.container, this._xml, {
|
||||
jsTooltips: false
|
||||
});
|
||||
(<any>this.container.querySelectorAll('div.qp-tt')).forEach(toolTip => {
|
||||
toolTip.classList.add('monaco-editor');
|
||||
toolTip.classList.add('monaco-editor-hover');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public get xml(): string {
|
||||
|
||||
Reference in New Issue
Block a user