Expose FSharpProjectSnapshot data.#16716
Conversation
|
|
Yeah I think that's fine. Alternatively we could maybe add a |
|
I'm not a huge fan of exposing underlying data types tbh. The more data types we expose, the harder it's going to be to change it. Don't we want to instead expose operations on snapshots/checker for needed actions, so it's easier to deprecate and change it? |
|
Nvm, if we want to eventually replace options with snapshot, it's fine |
It could be good, yes. We don't mind changing the API calls when such public APIs appear. However, we need to start testing the transparent compiler earlier than that happens, so for now let's make it possible for all editors to use and test it, without resorting to adding more IVTs to FCS. |
Yes, it sounds like it's where everyone is going to migrate to eventually when transparent compiler is stable. |
0101
left a comment
There was a problem hiding this comment.
We can expose these now. But eventually the code that will be creating new snapshots based on updates should also be here so everyone doesn't have to re-implement it.
Yes, perhaps, but something that would fit all use cases would be more ideal to start with. |
Description
In the new world of snapshots, it is currently impossible to update a snapshot when, for example, the
OtherOptionschanged. I'd like to expose more data so the staticCreatemethod can be used to create an updated version.This currently is possible with
FSharpProjectOptions. I would need this to have parity.Who do you think @0101?
Checklist
Test cases added
Performance benchmarks added in case of performance changes
Release notes entry updated: