Skip to content

[ENHANCEMENT] Include selected gitignored paths in code indexing #8124

@hannesrudolph

Description

@hannesrudolph

Type

Enhancement

Problem / Value

The code indexer always follows .gitignore and has no way to include files that are intentionally excluded from version control (like generated code or nested project folders). This causes missing context for AI assistance and slows development when the AI can’t “see” the code you actually work with.

Context

Affects developers who:

  • Generate code (API clients, type defs, build outputs)
  • Use meta-repos with nested repositories
  • Maintain monorepos with selectively ignored packages
  • Keep large generated docs/configs out of Git

Today these paths are skipped entirely during indexing, so AI can’t reference their types, helpers, or APIs.

Desired behavior (conceptual):

  • Provide a simple configuration to include specific paths in indexing even if they are gitignored.
  • This applies only to code indexing and does not change Git behavior or repository cleanliness.

Constraints/Preferences

  • Opt-in and backward compatible (default behavior unchanged)
  • Does not modify .git behavior or tracked files
  • Lightweight to configure (patterns similar to .gitignore)
  • Safe by default; scoped to the current workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Issue [Unassigned]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions