Relative paths sometimes not included as links in integrated terminal #22528
Labels
bug
Issue identified by VS Code Team member as probable bug
help wanted
Issues identified as good community contribution opportunities
terminal
General terminal issues that don't fall under another label
verified
Verification succeeded
Milestone
Steps to Reproduce:
echo "src/app.js"
)Description:
Let's say you have a build system that outputs a stack trace on a build error or failed test. If this was run from the integrated terminal, the file paths in the output should be included as clickable links which can be clicked to open the file in VSCode.
However, this only works if the path is either an absolute path (e.g.
~/work/project/src/app.js
) or a relative path that begins with "./".Many build systems and tools output file paths relative to the directory the command was run, without the leading "./", Karma for example. So the output would be something like:
src/app.js
, not./src/app.js
. The first is not matched by VSCode as an openable path, but the second is.I believe that what is determined to be a path comes from the Regex in "terminalLinkHandler.ts"
Is there a reason why relative paths of this form (e.g. no leading "./") are not included?
The text was updated successfully, but these errors were encountered: