Project Files tree incorrectly applies parent repository .gitignore
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- git
- Área
- developer-experience, tooling
Línea de trabajo
Look for the code that builds the Project Files tree, likely in a module handling file system navigation and .gitignore application. The issue is about precedence of .gitignore rules when a project is nested inside another repository. Start by finding where .gitignore files are read and applied, then trace how the current directory's repository is determined. Check for tests related to file tree filtering or .gitignore handling to understand the expected behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Short summary
When a project is nested inside another Git repository, the Project Files tree can apply the parent repository's .gitignore rules instead of the child project's rules. This hides most files from the tree.
Affected version or release
v1.1.23
Installation context
GitHub Copilot desktop app on Windows 11, local repository project/session.
What happened?
All my projects live under C:/Code, and I use that for cross-repo AI work and it's added to sidebar - that folder is a repo, with an ignore-almost-all .gitignore to version control high level docs and notes (exclude anything but 3 folders). Under it I have C:/Code/ProjectA, which is also added to the sidebar, and is a normally setup git repo, but if I try and open the files pane in it, it seems to be filtered by the C:/Code .gitignore (I can only see one folder, which is from the allowed ones in the parent .gitignore).
C:/Code is also the repo storage location configured in the settings.
Steps to reproduce
-
Create a Git repository at
C:\Code. -
Add a parent
.gitignorecontaining:* !docs/ !docs/** -
Place an independent Git repository at
C:\Code\ProjectA. -
Ensure the child repository contains normal source directories such as
src. -
Configure both
C:\CodeandC:\Code\ProjectAas local Copilot projects and configureC:/Codeas the central storage location. -
Open a Copilot session for
ProjectA. -
Open the Project Files tree.
-
Observe that only
docsor other parent-repository-visible paths are shown; child repository source files are missing. -
Close and reopen the session, then restart the app.
-
Observe that the incorrect tree remains.
Expected behavior
The local project .gitignore takes precedence over the root one.
Additional context
No response
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 2.2k
- Forks
- 174
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 github/app
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Todos los issues de github/app
Issues similares
-
good first issue hacktoberfest
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
RogueAlg0/taken#387 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
raullenchai/Rapid-MLX#4042 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
code-yeongyu/oh-my-openagent#9454 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
smart-village-solutions/sva-studio#1654 ·
Los mantenedores suelen responder en 1 día