DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
320 stars 87 forks source link

XPath results: nodes with clickable links #306

Open andbue opened 4 years ago

andbue commented 4 years ago

Description It would be great if we could directly jump from the XPath query results to the position of the document.

Suggestion In evaluateXPath, line 76:

outputChannel.appendLine(`[Position ${editor.document.uri}:${node.lineNumber}:${node.columnNumber}] ${node.localName}: ${node.textContent}`);

–> Produces the desired result, at least on Linux (should be tested on other OS, there might be some qirks according to https://github.com/microsoft/vscode/issues/586).