Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Goto line on double click of build/test output w/ file & line # #241

Closed
natefinch opened this issue Mar 14, 2016 · 6 comments
Closed

Goto line on double click of build/test output w/ file & line # #241

natefinch opened this issue Mar 14, 2016 · 6 comments

Comments

@natefinch
Copy link

I have no idea if this is possible in VSCode (I would hope so)... but it's super handy to be able to just double click a build or test error in the output and jump to the right line in the editor so you can read the exact code. The filename and line number are right there in the output, so hopefully that's possible.

@ironcladlou
Copy link
Contributor

I never found a way to implement this, but the "Show Errors and Warnings" command is a decent substitute in the meantime.

/cc @lukehoban

@lukehoban
Copy link
Contributor

@egamma Is there any way to set a problem matcher to use to cause links to appear in the file/line/col references that appear in the output window under a specific (in this case Go) output channel?

@egamma
Copy link
Member

egamma commented Apr 11, 2016

Is there any way to set a problem matcher to use to cause links to appear in the file/line/col references that appear in the output window under a specific (in this case Go ) output channel?

@lukehoban this is currently not possible sorry, we haven't connected problem matching with link detection. Currently we have some well known patterns we use to turn output into links, see
https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/output/common/outputWorker.ts#L72

If you have control over the output of the tool then you can tweak the output to match one of those patterns...

@joebehymer
Copy link

joebehymer commented May 9, 2016

[edit] - sorry, didn't realize this was the -go repo. I created a new issue over here: microsoft/vscode#6217

@ramya-rao-a
Copy link
Contributor

@natefinch
The output from build, vet and linting is also sent to the Problems view from where they are clickable and would take you to the right file and line.

ramya-rao-a added a commit to ramya-rao-a/vscode-go that referenced this issue Mar 26, 2017
ramya-rao-a added a commit that referenced this issue Mar 27, 2017
* Fixes #241 Use absolute path in output pane to support links

* Refactoring

* Relax the regex for filename
@ramya-rao-a
Copy link
Contributor

The output channel "Go" that gets the build/lint/vet output as been showing clickable links for a while.

With the latest update (0.6.56) to the Go extension, you can now get the same in the test output as well.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants