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
This issue is a grab bag tracking things that were changed to enable us to work on cohosting, but we don't expect to be part of the final delivered solution.
Remove DocumentVersionCache
Roslyn TextDocument is inherently versioned
Remove DocumentState
Roslyn tracks document state in TextDocument, and the source generator does too via its pipeline.
Remove ProjectState
Roslyn tracks project state in Project, and the source generator does the rest in its pipeline.
Reduce the properties on DocumentSnapshot and ProjectSnapshot
If DocumentSnapshot remains in existence it should be a very light wrapper over a Roslyn document, and a convenient way to access data from the source generator. It should not store state, generally speaking.
Maybe remove DocumentSnapshot/ProjectSnapshot
If the above removes enough properties, maybe DocumentContext is enough
Alternative to the above, perhaps RemoteDocumentSnapshot is the type we use most often, and it allows access to the TextDocument for a Razor document, and the SourceGeneratedDocument for a generated document, and mapping between the two.
This issue is a grab bag tracking things that were changed to enable us to work on cohosting, but we don't expect to be part of the final delivered solution.
The text was updated successfully, but these errors were encountered: