You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in this issue, output channel supports link rendering. I'd like to append a link to a workspace file position (by providing a file name, line and column in some form). If it's already possible, could you please paste an example on how to do it?
Copied from original issue: Microsoft/vscode-extensionbuilders#41
Reacted by Ryan Walls, Charlie Jonas, Gregor Woiwode, Eric Nicholson, 牛さん, Guus Waals, hendrics, Tzach Shabtay, Sergey, Alexander and 29 more
I see. We have a limited set of default patterns that we use to match against the output to show links. Currently relative paths are not in there.
Dirk Bäumer (@dbaeumer) can also comment maybe. I think it is possible to contribute patterns from a task to control links in the output, but I might be wrong?
Is there any news on this?
I really need this. I would be ok writing an extension to handle this. But we would need an API to interact with the output.
Since we are a small team of developers, there is only so many feature requests and issues we can work on for one milestone. Nevertheless we always welcome pull requests and are happy to accept them if they meet our quality standards.
Even though this issue has been closed already, I didn't get how to implement what'd been said under #586 (comment) in order to achieve the desired output:
Where do I have to insert "::" (in combination with "Callstack.itemToString()" ??) that the vs-code console shows me something like
"~/path/script.py in project_variable_return(..), line 66" I can jump directly to via Ctrl + Left-click, instead of having (in my case the default) output where only the file is clickable, but not the line mentioned in the error output:
~/path/script.py in project_variable_return(..)
64 blabla = "bla"
65 if not os.path.exists(blabla):
---> 66 os.mkdir(blabla)
Thanks in advance for stating more clearly how (or WHERE) to implement "::".
Is this problem still unresolved?
Is there any special treatment for this first path? It can be opened, but the following can not click.
I run channel.appendLine('/Users/zcfh/myTest/vscode_test/xmake-vscode/src/terminal.ts: error'), output can not click.
Running cmake-tool through code can use cmd + click in the output panel.Did the cmake-tool extension do any special operations?
Is this problem still unresolved?
Is there any special treatment for this first path? It can be opened, but the following can not click.
I run channel.appendLine('/Users/zcfh/myTest/vscode_test/xmake-vscode/src/terminal.ts: error'), output can not click.
Running cmake-tool through code can use cmd + click in the output panel.Did the cmake-tool extension do any special operations?
I may find the reason, because I needed to provide highlighting for the output pannel before, so I customized tmlanguage. But I still don’t know how to solve this problem.
Is this problem still unresolved?
Is there any special treatment for this first path? It can be opened, but the following can not click.
I run channel.appendLine('/Users/zcfh/myTest/vscode_test/xmake-vscode/src/terminal.ts: error'), output can not click.
Running cmake-tool through code can use cmd + click in the output panel.Did the cmake-tool extension do any special operations?
I may find the reason, because I needed to provide highlighting for the output pannel before, so I customized tmlanguage. But I still don’t know how to solve this problem.
pakcage.json
As mentioned in this issue, output channel supports link rendering. I'd like to append a link to a workspace file position (by providing a file name, line and column in some form). If it's already possible, could you please paste an example on how to do it?
Copied from original issue: Microsoft/vscode-extensionbuilders#41
Activity
seanmcbreen commentedon Nov 24, 2015
From Benjamin Pasero (@bpasero) on October 19, 2015 6:15
You should be able to link to a file line and column with the syntax
<path>:<line>:<column>.seanmcbreen commentedon Nov 24, 2015
From Artem Govorov (@ArtemGovorov) on October 19, 2015 6:36
Thanks, I have been trying the syntax, didn't work for me with a relative path. Only works with a full path.
Is it possible to make it work with paths relative to the opened project/folder?
Also, is it possible to supply a custom text, but still render it as a file position link?
seanmcbreen commentedon Nov 24, 2015
From Benjamin Pasero (@bpasero) on October 19, 2015 7:5
I see. We have a limited set of default patterns that we use to match against the output to show links. Currently relative paths are not in there.
Dirk Bäumer (@dbaeumer) can also comment maybe. I think it is possible to contribute patterns from a task to control links in the output, but I might be wrong?
seanmcbreen commentedon Nov 24, 2015
From Dirk Bäumer (@dbaeumer) on November 16, 2015 10:34
Benjamin Pasero (@bpasero): no the task framework doesn't contribute any link patterns. There is no API to do so.
farfromrefug commentedon Aug 20, 2016
Is there any news on this?
I really need this. I would be ok writing an extension to handle this. But we would need an API to interact with the output.
bpasero commentedon Aug 20, 2016
Thanks so much for your interest in this issue! It is currently assigned to the backlog. Every month we pick items from the backlog to plan for the current iteration. Please see https://github.com/Microsoft/vscode/wiki/Issue-Tracking#planning for more information.
Since we are a small team of developers, there is only so many feature requests and issues we can work on for one milestone. Nevertheless we always welcome pull requests and are happy to accept them if they meet our quality standards.
TurkeyMan commentedon Sep 19, 2016
How is this not maximum priority? O_0
And how is it that there isn't a sea of complaints here... there must be some workaround that people are using?
12 remaining items
Apoorva-GA commentedon Dec 15, 2017
If the file path has a space in the file name. VSCode treats link only until the space is found. Is there a way to get around this problem?
How to handle links in output channel with space in the filename?
AustinW4t1qbit commentedon Jan 17, 2018
Are there working workarounds for this right now for OSX?
AndreasLuckert commentedon Sep 17, 2019
Even though this issue has been closed already, I didn't get how to implement what'd been said under
#586 (comment) in order to achieve the desired output:
Where do I have to insert "::" (in combination with "Callstack.itemToString()" ??) that the vs-code console shows me something like
"~/path/script.py in project_variable_return(..), line 66" I can jump directly to via Ctrl + Left-click, instead of having (in my case the default) output where only the file is clickable, but not the line mentioned in the error output:
~/path/script.py in project_variable_return(..)
64 blabla = "bla"
65 if not os.path.exists(blabla):
---> 66 os.mkdir(blabla)
Thanks in advance for stating more clearly how (or WHERE) to implement "::".
zcfh commentedon Jan 12, 2021
Is this problem still unresolved?
Is there any special treatment for this first path? It can be opened, but the following can not click.
I run
channel.appendLine('/Users/zcfh/myTest/vscode_test/xmake-vscode/src/terminal.ts: error'), output can not click.Running cmake-tool through code can use

cmd + clickin the output panel.Did the cmake-tool extension do any special operations?zcfh commentedon Jan 12, 2021
I may find the reason, because I needed to provide highlighting for the output pannel before, so I customized tmlanguage. But I still don’t know how to solve this problem.
zcfh commentedon Jan 12, 2021
{ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "name": "Output-test", "patterns": [], "scopeName": "source.text" }After deleting

mimetypes, the absolute path of the file in the workspace can be clicked.Can I use
cmd+click pathwhile customizing output highlighting?johandanforth commentedon Feb 3, 2021
Regards to
dotnet buildand OmniSharp,ctrl+clickon an error doesn't work if path contains spaces.smm-h commentedon Apr 12, 2021
Currently three things could be improved about this:
Toxicable commentedon Jul 21, 2022
I'm sure this had previously been working well when you have a TypeScript output like
However, something recently changed and now when ctrl + clicking a link like that takes me to the top of the file and not the line number
starball5 commentedon Feb 10, 2023
Possibly related: #149153, #163778, and #167211.
And related Stack Overflow questions:
How can I make clickable file position links in an output channel that open the file in an editor tab?.
How to open a file by cmd+click a path in the vscode output panel?
gg569 commentedon Dec 15, 2024
orxanhuseynzade47-del commentedon Oct 1, 2025
__