I’m developing a package that processes the currently open file via an external application. It creates an item in a dock which contains an HTML version of the application’s output. If there are problems, the application reports the corresponding line and column number. I’m trying to mark these parts of the output to be links which when clicked open the file in Atom at that position.
Concretely, in my
-view.js function I have code like this:
const link = document.createElement('a'); link.textContent = 'line ' + l + ' column ' + c link.href ="<URI>" line.appendChild(link)
The result looks like this, but the created link doesn’t do anything:
Is there a URI syntax that implements the function I’m looking for? Right now I cannot even manage to open the file via a standard
file:// URI, much less at a specific position. Maybe there is an “atom://core” variant for this?