Terminal file links should resolve relative paths using the terminal's current working directory
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
## Reproduction
**Workspace:**
```text
workspace/
├── app/
│ └── src/
│ └── main.rs
└── tool/
└── src/
└── main.rs
```
**Terminal:**
```text
user@host MINGW64 /c/workspace/tool (main)
$ cargo build
error: something went wrong
--> src/main.rs:5:1
|
5 | compile_error!("test");
| ^^^^^^^^^^^^^^^^^^^^^^
```
**Expected**
* Ctrl+Click on `src/main.rs:5:1` opens `workspace/tool/src/main.rs`.
**Actual**
* VS Code opens `workspace/app/src/main.rs` (or the first matching file in the workspace).
**Suggestion**
When a terminal has shell integration and knows its current working directory (for example, `/c/workspace/tool`), relative file links should be resolved against that directory before falling back to a workspace-wide search.
Contributor guide
Assessment
This issue has not been assessed yet.