Merge pull request #3 from rdoubleui/xpath_query_output
XPath Feature: Add last query to output channel
This commit is contained in:
		
						commit
						eeb0ed8d4c
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue