VS Code Extension: File tabs opened by Claude Code show full absolute path when file is outside workspace
Problem
When Claude Code opens a file that is outside the current VS Code workspace, the editor tab displays the full absolute path prefixed with [Claude Code]:
[Claude Code] c:\Users\<username>\<some-project>\README.md
For files inside the workspace, the tab title is short and readable as expected. But for files outside the workspace (e.g., referenced dependencies, config files in home directory, other projects), the full absolute path makes tabs very wide and hard to distinguish.
VS Code's built-in workbench.editor.labelFormat setting has no effect on these tabs — the extension appears to bypass the standard editor label rendering.
Expected Behavior
Even for files outside the workspace, the tab title should be shortened — for example by showing only the filename or a truncated path:
[Claude Code] README.md
[Claude Code] …/<some-project>/README.md
Or ideally, respect the user's workbench.editor.labelFormat setting.
Environment
- OS: Windows 11
- VS Code Extension (Claude Code)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗