-
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
Fix CodeLens data point invalidation #47138
Conversation
205bda0
to
ee6d7ae
Compare
{ | ||
var documentId = document.Id; | ||
return new List<Guid>(2) { documentId.ProjectId.Id, documentId.Id }; | ||
var projectVersion = await project.GetDependentVersionAsync(cancellationToken).ConfigureAwait(false); |
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.
❔ How expensive is GetDependentVersionsAsync
?
- Do we need to implement a
WorkspaceChanged
throttle here, or just make the calls to get the version? - Do we need to add an argument to only get the versions for projects we currently have data points for?
ee6d7ae
to
3b0d93d
Compare
{ | ||
lock (_dataPoints) | ||
{ | ||
if (_dataPoints.TryGetValue(dataPoint.Descriptor.ProjectGuid, out var points) |
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.
When do we expect _dataPoints.TryGetValue
or the Remove(dataPoint)
to return false here?
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.
I would not expect that.
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.
LGTM
No description provided.