[FEATURE] Show parent folder name alongside filename in edit indicator

Resolved 💬 3 comments Opened Mar 8, 2026 by yucedemirayak Closed Apr 23, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When Claude Code edits a file, the VS Code extension shows only the
filename in the edit indicator (e.g. "index.tsx", "__init__.py", "mod.rs").
In projects that use folder-based module conventions, these generic
filenames give no context about which module or component is actually
being edited. This is a widespread issue across many languages and
project structures, not limited to any single ecosystem.

Proposed Solution

Add a configurable option in Claude Code settings to show the parent
folder name alongside the filename in the edit indicator:

  • "index.tsx" (current behavior)
  • "Button/index.tsx" (parent folder + filename)

This could apply to any file where the filename alone is ambiguous
(e.g. index, __init__, mod, main), similar to how VS Code handles
duplicate tab labels automatically.

Alternative Solutions

The option could also support showing the full relative path
(e.g. "src/components/Button/index.tsx") for users who prefer
maximum context.

Priority

Low - Nice to have

Feature Category

Configuration and settings

Use Case Example

  1. I'm working on a project where modules are structured as folders

with a conventional entry file (e.g. Button/index.tsx, utils/__init__.py)

  1. Claude Code is editing multiple files simultaneously
  2. The edit indicator shows the same generic filename for every file

being changed (e.g. "index.tsx", "__init__.py")

  1. I have no way to tell which module is actually being modified

without checking the full path manually

  1. With this feature enabled, the indicator would show

"Button/index.tsx" or "utils/__init__.py", making it immediately
clear what's being edited

Additional Context

This is a common pattern across many languages and ecosystems:

  • Python: __init__.py, __main__.py
  • JavaScript/TypeScript: index.js, index.ts, index.jsx, index.tsx
  • Rust: mod.rs, lib.rs, main.rs
  • Go: main.go
  • PHP: index.php

VS Code itself already handles this in tab labels — when two files
with the same name are open, it automatically shows the parent folder
to disambiguate. The same logic could be applied to Claude Code's
edit indicator, ideally as a user-configurable setting.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗