Roslyn: Completion offers `nuint` over `null`

Created on 17 Apr 2020  路  5Comments  路  Source: dotnet/roslyn

Version Used: Version 16.7.0 Preview 1.0 [30015.115.master]

Steps to Reproduce:

  1. Type object foo = nu
  2. Look at the screen

Expected Behavior:
It would be great if null was preselected, either because of target type matching, or, perhaps more selfishly, because my personal muscle memory is hardcoded into the IDE.

Actual Behavior:
image

Area-IDE Bug IDE-IntelliSense

Most helpful comment

Fixing now.

All 5 comments

If the completion MRU does not contain either nuint or null, the selection algorithm should treat null as having priority over nuint with the same precedence that the MRU normally provides.

Have heard about this from more internal customers. We should def do this.

Installed the latest VS 16.7 preview and have been fighting with my muscle memory all day.
Somehow the MRU mechanism isn't reliable here (it depends on some context I guess).

Now that 16.7 is out, I hit this on Twitch last night so there are at least 3 more people who know about it too :)

Fixing now.

Was this page helpful?
0 / 5 - 0 ratings