Microsoft/vscode

git.openFile opens in wrong split

Aberta

#265.405 aberto em 5 de set. de 2025

 (1 comentário) (0 reação) (1 responsável)TypeScript (39.847 forks)batch import
buggithelp wanted

Métricas do repositório

Stars
 (184.936 estrelas)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

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

  • VS Code Version: 1.103.2 (Universal)
  • OS Version: Darwin arm64 24.6.0

Steps to Reproduce:

  1. Open two diff editors in different split panels
  2. Click the "git.openFile" editor action button for the editor that isn't focused

The file opens in the same panel as the focused editor instead of the same panel as the corresponding diff editor. This is disorienting and doesn't match the behavior of other editor action buttons such as "workbench.action.splitEditor". This issues is also present with buttons provided by extensions such as "pr.addFileComment" from https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github.

https://github.com/user-attachments/assets/950c9c0c-e9cb-435c-acc2-41cd51c72c63

Guia do colaborador