From b7e4fc8c1514bc3d8c27c46b511bd9ca47004efb Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Thu, 7 Jan 2016 11:08:26 -0500 Subject: [PATCH] Fix Output * Only output line number, not column. * Append a newline after first line. --- src/providers/XPath.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/XPath.ts b/src/providers/XPath.ts index c8babb4..0d3c31c 100644 --- a/src/providers/XPath.ts +++ b/src/providers/XPath.ts @@ -63,12 +63,12 @@ export class XPathFeatureProvider { outputChannel.clear(); outputChannel.appendLine(`XPath Query: ${query}`); - outputChannel.append(''); + outputChannel.append('\n'); // node.lineNumber and node.columnNumber are not standard properties of the Node object (implemented by xmldom) // TypeScript will complain, but should still compile. this is preferable right now over mocking the entire typedef nodes.forEach((node: Node) => { - outputChannel.appendLine(`[${node.lineNumber}, ${node.columnNumber}] ${node.localName}: ${node.textContent}`); + outputChannel.appendLine(`[Line ${node.lineNumber}] ${node.localName}: ${node.textContent}`); }); outputChannel.show(vsc.ViewColumn.Three);