Skip to content

Commit

Permalink
Merge pull request #3 from rdoubleui/xpath_query_output
Browse files Browse the repository at this point in the history
XPath Feature: Add last query to output channel
  • Loading branch information
DotJoshJohnson committed Dec 9, 2015
2 parents 34d87ea + 112d99c commit eeb0ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/features/xmlXPathEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
Expand Down

0 comments on commit eeb0ed8

Please sign in to comment.