Skip to content

Fix call hierarchy file node paths - #64108

Draft
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-call-hierarchy-file-path
Draft

Fix call hierarchy file node paths#64108
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-call-hierarchy-file-path

Conversation

Copilot AI commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

TypeScript 7 call hierarchy file nodes displayed absolute paths, making large hierarchies difficult to scan.

  • Display: Use the file basename as the node name.
  • Context: Show the project-relative containing directory as detail.
  • Navigation: Preserve the absolute file URI.
  • Coverage: Add a subdirectory regression case and update affected call hierarchy baselines.
Before: /workspace/src/callers.ts
After:  callers.ts  src

@typescript-automation typescript-automation Bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Aug 31, 2026
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug and removed For Milestone Bug PRs that fix a bug with a specific milestone labels Aug 31, 2026
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix call hierarchy to show relative file paths instead of absolute Fix call hierarchy file node paths Aug 31, 2026
@jakebailey

Copy link
Copy Markdown
Member

I'm not sure this is 100% right; it turns out that the old VS Code extension did vscode.workspace.asRelativePath(path.dirname(item.file)) which actually made the path relative to the workspace root.

I think we'd have to somehow plumb that info down from the init message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On TypeScript 7, Call hierarchy shows a full absolute path instead of file name + relative path

3 participants