mirrorsharp
mirrorsharp copied to clipboard
MirrorSharp keeps autocorrecting string to String
Not sure if this is just a Roslyn setting or a MirrorSharp thing, but I figured you'd know. When I'm typing code and doing something like declaring properties, MirrorSharp keeps wanting to suggest String
instead of string
. Is this a setting I can control.
You can see it keep happening in this YouTube video I recorded using MirrorSharp in Abbot at the 11:58 mark: https://youtu.be/WaTkNraTGU8?t=718
Thanks for reporting!
I have tried to reproduce it and I am getting string
higher in the autocomplete list than String
, so it works fine, but in your video I can see String
is higher.
I am not sure why -- I don't remember doing any manual sorting, so order must be coming from Roslyn, but I will investigate further.
~At a first glance it should be in order tested here http://sourceroslyn.io/#Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests/Completion/CompletionProviders/CompletionProviderOrderTests.cs,42 so keywords should be high in the list.~
Edit: Nvm, not yet fully sure how the order gets defined, confirming.
To verify it's not a JS issue, can you check WebSocket completions
message you are getting and what the order is there?
Looks like I get String
before string
Thanks! I'll investigate further. Which Roslyn library version are you using?
Microsoft.CodeAnalysis.CSharp v3.8.0