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
There is currently an issue with VS and VSCode autocomplete that leads to incorrect code suggestions for nested Includes that come after a collection Include. Specifically, this happens when the included collection implements IEnumerable<T> (ex: ICollection<T>, List<T>).
The issue is being tracked in Roslyn repository: #63108. Please like (👍) the Roslyn issue to get more attention there.
Current behaviour
Expected behaviour
Workarounds
This only affects autocomplete on VS and VSCode and only for the first include of an affected builder. The code will still compile. Regardless, it can be annoying and break the flow.
One way to circumvent this, is to manually add the relevant type to the include expression:
Description
There is currently an issue with VS and VSCode autocomplete that leads to incorrect code suggestions for nested
Includes
that come after a collectionInclude
. Specifically, this happens when the included collection implementsIEnumerable<T>
(ex:ICollection<T>
,List<T>
).The issue is being tracked in Roslyn repository: #63108. Please like (👍) the Roslyn issue to get more attention there.
Current behaviour
Expected behaviour
Workarounds
This only affects autocomplete on VS and VSCode and only for the first include of an affected builder. The code will still compile. Regardless, it can be annoying and break the flow.
One way to circumvent this, is to manually add the relevant type to the include expression:
But it looks like a proper fix can only be done by fixing the underlying Roslyn issue.
The text was updated successfully, but these errors were encountered: