-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove smart rename lightup #81598
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
Remove smart rename lightup #81598
Conversation
| context | ||
| .Select(n => new KeyValuePair<string, ImmutableArray<(string filePath, string content)>>(n.Key, n.Value))); | ||
| smartRenameContext = ImmutableDictionary.CreateRange( | ||
| context.Select(n => KeyValuePair.Create(n.Key, n.Value.SelectMany(t => new[] { t.filePath, t.content }).ToArray()))); |
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 didn't k now what to do here. It seems like the old code was just outright buggy. there is no way this was operating without throwing exceptions afaict.
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 made it at least compile. but i have no idea what the expectation is here mapping from our ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>> to their ImmutableDictionary<string, string[]>. @akhera99 can you specify what should happen 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.
There are two public methods, one taking ImmutableDictionary<string, string[]> and another ImmutableArray<RenameContext> as the first parameter. source link
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.
thanks, i moved to the latter.
| context.Select(n => KeyValuePair.Create(n.Key, n.Value.SelectMany(t => new[] { t.filePath, t.content }).ToArray()))); | ||
| _semanticContextDelay = stopwatch.Elapsed; | ||
| } | ||
| catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Diagnostic)) |
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 think this code existed to just always catch/mask that this was always failing. i would like to remove the try/catch, but this entire model scares me a bit.
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.
does it no longer catch anything after your fix?
|
@Cosifne ptal. |
AmadeusW
left a comment
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.
Overall looks good, I left couple comments.
Cosifne
left a comment
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 guess you still need to get someone else's approval because I am no longer in the team
No description provided.