Adds the last used query to the output
This commit is contained in:
parent
af117fe58c
commit
112d99c30c
@ -34,6 +34,8 @@ export function evaluateXPath(editor: TextEditor, edit: TextEditorEdit): void {
|
|||||||
if (resultChannel === null) resultChannel = window.createOutputChannel('XPath Evaluation Results');
|
if (resultChannel === null) resultChannel = window.createOutputChannel('XPath Evaluation Results');
|
||||||
resultChannel.clear();
|
resultChannel.clear();
|
||||||
|
|
||||||
|
resultChannel.appendLine('Last query: ' + query + '\n');
|
||||||
|
|
||||||
nodes.forEach((node) => {
|
nodes.forEach((node) => {
|
||||||
resultChannel.appendLine(`${node.localName}: ${node.firstChild.data}`);
|
resultChannel.appendLine(`${node.localName}: ${node.firstChild.data}`);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user