-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Change how creation dates are specified in the SG api #72794
Conversation
Checksum solutionChecksum, ProjectId projectId, CancellationToken cancellationToken); | ||
|
||
/// <summary> | ||
/// Given a particular set of generated document ids, returns the fully generated content for those documents. | ||
/// Should only be called by the host for documents it does not know about, or documents whose checksum contents are | ||
/// different than the last time the document was queried. | ||
/// </summary> | ||
ValueTask<ImmutableArray<(string contents, DateTime generationDateTime)>> GetContentsAsync( | ||
ValueTask<ImmutableArray<string>> GetContentsAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this value moved from the content request (which is really just about getting the excat content for a checksum) to the above call to get info about a generated file. THat's not only better, it's more correct as we can def be in a situation where we say "we generated the same contents in OOP as last time, but the generation timestamps were incremented".
this.SourceText, | ||
this.LoadTextOptions, | ||
this.TreeSource!, | ||
this._lazyContentHash, | ||
generationDateTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previously, updating the generation-time would cause the doc to be reparsed. there's no need for that at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonmalinowski For review when you get back. |
Extracted from #72494