Skip to content

File tree shifts to the right after invoking rename #332459

Description

@monolithed

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

VS Code Version: 1.134.0
OS Version: Sonoma 14.0 (23A344)

Steps to Reproduce:

  1. Create a directory structure with long file/folder names (or deep nesting) so that a horizontal scrollbar appears in the file explorer view.
  2. Drag the horizontal scrollbar all the way to the left (to the very start of the tree).
  3. Select any file or folder.
  4. Invoke the rename command – either via the context menu (right-click → Rename) or using a keyboard shortcut.

Actual result:

After the rename action is triggered, the whole tree / directory structure shifts to the right (the horizontal scroll position jumps to the right). This forces the user to scroll back left to see the beginning of the names.

Screen.Recording.2026-08-25.at.03.11.42.mov

Expected result:

The horizontal scroll position should remain unchanged when the rename command is called. The tree should stay in place; only the inline rename input field should appear without affecting the overall scroll offset.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions