-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Milestone
Description
Currently the filename that is written into the PDB for a source generated file is an underscore-delimited combination of:
- The MVID of the module containing the source generator itself.
- The name of the source generator.
- The hint file (suffixed with .cs if necessary.)
This creates a few issues for the IDE, since we need to match this naming convention to make the debugger work:
- The MVID means any time a generator is updated, all the existing files we have open are now invalid or need to be renamed. It also means places that show the full file name (like debugger breakpoints) have to show something which is pretty huge.
- Since we're using underscores as a delimiter, looking at a file name by itself makes it hard to tell what part is the generator name and what part is the hint name, since both could contain an embedded underscore.
Reactions are currently unavailable