Skip to content

File links in intergrated terminal no longer respect line numbers, if the path is preceded by > #177192

@adalisk-emikhaylov

Description

@adalisk-emikhaylov

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.76.0 (and 1.76.1)
  • OS Version: Windows_NT x64 10.0.19045

Clicking a file path in the terminal, followed by a line number, no longer scrolls to the specified line. This only happens if the path is preceded by >.

This is a regression, it used to work in recent versions (1.75.x I believe).

Steps to Reproduce:

  1. In integrated terminal: echo '1>C:\path\to\some\file.cpp(3,1): error C2059: syntax error: ...' (use a path to existing non-empty file)
  2. Alt+click the path
  3. The file is opened, but not at the specified line number (3 in this case)

This only happens if the path is preceded by >. Since MSVC C++ compiler outputs paths in this format, this is a common use case.

This seems to affect all line number formats: (row,col):, (row):, :row:col:, :row:.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-linksverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions