Opening a submodule bump in the PR changes view fails: "Unable to read file ... that is actually a directory"
@alexr00 ya está trabajando en esto.
Desde el 24/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description
When a PR bumps a git submodule (a 160000 gitlink tree entry), clicking that file in the PR's changed-files list fails to open, instead of showing a diff of the submodule commit pointer (old SHA → new SHA).
Error
The editor could not be opened due to an unexpected error. Please consult the log for more details.
From remoteexthost.log (Remote-SSH):
CodeExpectedError: cannot open vscode-remote://ssh-remote+<host>/<path>/<submodule-dir>. Detail: Unable to read file 'vscode-remote://ssh-remote+<host>/<path>/<submodule-dir>' (Error: Unable to read file 'vscode-remote://ssh-remote+<host>/<path>/<submodule-dir>' that is actually a directory)
at THe.$tryOpenDocument (.../workbench.desktop.main.js:699:10890)
Root cause (from log inspection)
The extension calls vscode.open() on the submodule's literal filesystem path — the same as for a normal changed file — instead of constructing a diff/content-provider URI. Since a submodule tree entry has no blob content of its own (it's a directory containing a nested checkout), the remote file service stats it, finds a directory, and throws EISDIR.
Separately, in another context (opening the same kind of change from the PR description's "Changes" webview), the extension does construct a pr: scheme URI with baseCommit/headCommit/fileName, e.g.:
pr:/<path>?{"baseCommit":"<sha>","headCommit":"<sha>","isBase":false,"fileName":"<submodule-path>","prNumber":<n>,"status":3,"remoteName":"origin"}
but this fails too, with a different error:
CodeExpectedError: cannot open pr:/<path>?{...}. Detail: Could not show object.
So neither code path currently special-cases gitlink (160000) entries — one falls back to opening the raw directory, the other tries to fetch blob content for a commit pointer that has none.
Expected behavior
Clicking a submodule entry in the PR changes view should show a minimal diff of the submodule pointer, e.g.:
Subproject commit <old-sha>
Subproject commit <new-sha>
(similar to git diff output for a submodule, and to how github.com renders it in the PR's "Files changed" tab).
Environment
- Extension:
github.vscode-pull-request-githubv0.167.2026092404 - VS Code Remote - SSH
- Linux remote host
Related issues
- #1499 ("We couldn't find commit" when submodules exist) — same underlying gap, different surfaced error
- #4688 (Add support for git submodules)
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.6k
- Forks
- 796
- Merge medio
- 14 h 34 min
- PR fusionados (30 d)
- 43
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/vscode-pull-request-github
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Issue 3 — Documentation Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
doesnt accept ghe signin Abierto
microsoft/vscode-pull-request-github#8982 · 1 asignado ·
-
microsoft/vscode-pull-request-github#8980 · 1 asignado ·
-
bug description page issues performance
microsoft/vscode-pull-request-github#8979 · 1 asignado ·
Todos los issues de microsoft/vscode-pull-request-github
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
mksglu/context-mode#1200 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/claude-code#96687 ·
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
AOSSIE-Org/DebateAI#582 · 2 comentarios ·