You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider emitting CompilationOptions into Portable PDB #12002
Doing this will also light up a checkmark in Nuget Package Explorer and dotnet validate experiences.
It might also enable better sourcelink-based go-to-definition experiences, because these options could be reconstituted into an accurate Project Options structure that could be used to provide actual typecheck results for that file (this is currently a problem in the kinds of views used by FSAC for sourcelink-based go-to-definition).
changed the title [-]Consider emitting compilation options into Portable PDB[/-][+]Consider emitting CompilationOptions into Portable PDB[/+]on Aug 23, 2021
Now that all of the major editors support fetching actual source via sourcelink, I think this should be prioritized. Emitting compiler options (which include metadata references!) into PDBs will allow for seamless navigation and editor experiences in the automatically-downloaded sources - right now once you enter into an F# source file downloaded in this way you're in a broken state in terms of editor functionality. The downloaded files don't support further navigation, proper highlighting, or intellisense - all because compilation options and references aren't available to reconstruct ProjectOptions for the file transparently on the editor side.
Activity
baronfel commentedon Aug 20, 2021
Doing this will also light up a checkmark in Nuget Package Explorer and
dotnet validateexperiences.It might also enable better sourcelink-based go-to-definition experiences, because these options could be reconstituted into an accurate Project Options structure that could be used to provide actual typecheck results for that file (this is currently a problem in the kinds of views used by FSAC for sourcelink-based go-to-definition).
[-]Consider emitting compilation options into Portable PDB[/-][+]Consider emitting CompilationOptions into Portable PDB[/+]baronfel commentedon Mar 25, 2023
Now that all of the major editors support fetching actual source via sourcelink, I think this should be prioritized. Emitting compiler options (which include metadata references!) into PDBs will allow for seamless navigation and editor experiences in the automatically-downloaded sources - right now once you enter into an F# source file downloaded in this way you're in a broken state in terms of editor functionality. The downloaded files don't support further navigation, proper highlighting, or intellisense - all because compilation options and references aren't available to reconstruct ProjectOptions for the file transparently on the editor side.