Skip to content

File references with @ should index into sub-repositories #2121

@revodavid

Description

@revodavid

Describe the feature or problem you'd like to solve

When working in a git-managed folder with multiple sub-repositories, the @ operator should find files in sub-repos as well

Proposed solution

My workflow is to run copilot in a folder with several repositories tracked in GitHub:

project-folder

  • subrepo-1
  • subrepo-2
  • subrepo-3

Until recently, this worked great with the @ operator. I could use @ to add any file from the subrepo-folders or from the main project folder to the context.

What changed is that I recently made the root project-folder a git-enabled repositiory (with a .gitignore file excluding the sub-repo folders). My goal was to keep an upstream backup of skills, copilot-instructions.md, etc. Now, however, the @ operator will only reference files in project-folder, and does not appear to index any of the subrepo folders.

I would like to use the @ operator again to reference all files in the tree, while still keeping my root project files backed up.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions