C
C#•2w ago
banana

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
kurumi
kurumi•2w ago
you can ignore rules in gitignore with ! I don't know if this would work, but you can try it and see
banana
bananaOP•2w ago
unfortunately i do want the files to be ignored, so that they aren't committed 😅
Jose Rizal
Jose Rizal•2w ago
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
banana
bananaOP•2w ago
the problem with that is that i do want to ignore them, so that they are not committed
kurumi
kurumi•2w ago
I didn’t use copilot MCP, but can’t you just add these files to its context? Without changing gitignore file

Did you find this page helpful?