It appears that differential.generated-paths doesn't trigger file collapsing. I started off with /\.generated\.cs$/ to try and match generated C# files, but it didn't work.
I tried even basic things like /generated/ to match files that had generated anywhere in the file name, and even that didn't seem to work.