Version Used:
VS 2019 16.3 Preview 4 (Int Preview)
Steps to Reproduce:
Expected Behavior:
Completion list is displayed with non-static member items of this class.
Actual Behavior:
Completion auto-completes to 'CallConvThiscall' and adds a using for System.Runtime.CompilerServices.
Auto-importing is nice but IMO needs to be a bit less aggressive. I frequently find myself needing to undo what it did. One obvious case is when the user types a keyword, especially 'this', 'value', etc. These should never be considered for completion/auto-namespace-import or they should be added to the completion list so the keyword is the selected match when the user types a commit character.
cc: @AmadeusW, in case you have any input here.
The situation above is just a plain bug. Typing 'this' should always prefer a match against 'this' as you type due to it being either a case-sensitive-prefix or 'case-sensitive-exact' match. That it ever preferred CallConvThiscall is just busted. Maybe some sort of race condition?
Tagging @ivanbasov .
@genlu is it the unimported types completion?
I'm not seeing 'this' in the completion list at all. I think it's selecting CallConvThiscall because it's indeed the closest match in the list. Seems like adding keywords to the completion list might fix the issue.
Seems like adding keywords to the completion list might fix the issue.
This should be the case. If you're not seeing keywords in the list, then that is the bug. If you can provide a repro that would be great.
@gundermanc could you please share a screenshot?
I could not repro the issue. Here is mine:

I have this selected.
Interestingly it's not repro-ing for me anymore. Perhaps there's something I'm missing.
@gundermanc could you perhaps have been in a static member?
It was a constructor IIRC. Granted, it was in a Razzle project, so perhaps there was something off about the design-time build.
OMG....
OMG.............
Razzle is still in use..............
OMG....
The bad memories you just made me think about again.......
Most helpful comment
OMG....
OMG.............
Razzle is still in use..............
OMG....
The bad memories you just made me think about again.......