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
Right click, and click Track Value Source with key
Expected Behavior:
Actual Behavior:
System.InvalidCastException: Cannot cast an object of type "Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.PropertySymbol"totype"Microsoft.CodeAnalysis.IMethodSymbol".
at Microsoft.CodeAnalysis.ValueTracking.ValueTracker.<TrackParameterSymbolAsync>d__4.MoveNext()
at Microsoft.CodeAnalysis.ValueTracking.ValueTracker.<TrackValueSourceAsync>d__1.MoveNext()
at Microsoft.CodeAnalysis.Remote.RemoteValueTrackingService.<>c__DisplayClass3_0.<<TrackValueSourceAsync>b__0>d.MoveNext()
at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.<RunServiceImplAsync>d__12`1.MoveNext()
The text was updated successfully, but these errors were encountered:
Index values weren't properly handled previously, and it was assumed all parameters existed in a method. In reality some exist in properties. Who knew!??!
No need to worry about the cast, symbol finder will do the right thing. Code does need to be updated to handle the fact that we want to track potentially two things with index: the argument passed in as the index in callsites, and potentially the item being indexed to. Update the FindReferencesProgress to handle references for index specifically.
Fixes#57100
Version Used:
VS2022 Version 17.0.0 Preview 4.1
Steps to Reproduce:
Track Value Source
withkey
Expected Behavior:
Actual Behavior:
The text was updated successfully, but these errors were encountered: