Skip to content

Relative paths sometimes not included as links in integrated terminal  #22528

@markwpearce

Description

@markwpearce
  • VSCode Version: 1.10.2
  • OS Version: Mac OSX (10.11.6)

Steps to Reproduce:

  1. Open VS Code integrated terminal
  2. Echo a relative path (eg. 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?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions