-
Notifications
You must be signed in to change notification settings - Fork 844
Write compilation references and compilation options to PDBs #14981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Test framework will probably also need to be extended, to check those: fsharp/tests/FSharp.Test.Utilities/Compiler.fs Lines 1210 to 1215 in 3d4eb5c
Example for sequence points: fsharp/tests/FSharp.Test.Utilities/Compiler.fs Lines 1151 to 1161 in 3d4eb5c
And import tables: fsharp/tests/FSharp.Test.Utilities/Compiler.fs Lines 1117 to 1149 in 3d4eb5c
|
Fixes #12002
This writes the Compilation Metadata References and Compilation Options tables to the CustomDebugInformation area of the PDB. There are a number of TODOs, and I'm not 100% sure I'm getting the actual information we will want to get a real end-to-end setup.
With these changes, we look like other .NET assemblies!
What this should do immediately is allow VS-based tooling to synthesize MetadataReferences from this cached data, so that go-to-def for sourcelinked files has a matching set of assembly references to do typechecking against (and therefore light up IDE tooling).
There are a number of TODOs that I'd like to get some feedback on. I'm fairly sure I'm reading required data correctly, but I want to make sure the sources I'm pulling it from are correct.
Also I'm certain I'm missing a number of compiler options that would be necessary to have on the read-side of this to ensure 1:1 compilation.
Finally, I haven't done the step that would map from the compilation options + compilation references to a proper FSharpProjectOptions - that would probably need to be done to show a true end-to-end in an editor.
I would love any and all review/pointers for the next steps here.