making source-generated files visible to copilot
does anyone know a way to do this? EmitCompilerGeneratedFiles will dump the files into obj/, but it seems like copilot's MCP tools won't read anything that's in .gitignore - so moving them elsewhere doesn't help either
5 Replies
you can ignore rules in
gitignore
with !
I don't know if this would work, but you can try it and seeunfortunately i do want the files to be ignored, so that they aren't committed 😅
one option is to adjust your build setup so the generated files are emitted outside of obj/into a non ignored directory, since copilot mcp won't surface anything under .gitignore
the problem with that is that i do want to ignore them, so that they are not committed
I didn’t use copilot MCP, but can’t you just add these files to its context?
Without changing gitignore file