From 112d99c30c63c22c0bbb15f142c9bd0beeaed2c9 Mon Sep 17 00:00:00 2001 From: Rajko Winkler Date: Wed, 9 Dec 2015 12:03:49 +0100 Subject: [PATCH] Adds the last used query to the output --- src/features/xmlXPathEngine.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/xmlXPathEngine.ts b/src/features/xmlXPathEngine.ts index 2f8218e..237ac5f 100644 --- a/src/features/xmlXPathEngine.ts +++ b/src/features/xmlXPathEngine.ts @@ -34,6 +34,8 @@ export function evaluateXPath(editor: TextEditor, edit: TextEditorEdit): void { if (resultChannel === null) resultChannel = window.createOutputChannel('XPath Evaluation Results'); resultChannel.clear(); + resultChannel.appendLine('Last query: ' + query + '\n'); + nodes.forEach((node) => { resultChannel.appendLine(`${node.localName}: ${node.firstChild.data}`); });