-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't show enum completion if text is typed after dot #18577
Conversation
{ | ||
static void Main(string[] args) | ||
{ | ||
M(E.a$$) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably good to have a comment saying that the normal symbolcompletionprovider gives us the values here, so we don't need to duplicate it. Also, we probably want a test in symbolcompletionprovidertests to make sure that we do get values from it.
@@ -52,7 +52,9 @@ internal override bool IsInsertionTrigger(SourceText text, int characterPosition | |||
return; | |||
} | |||
|
|||
var token = tree.FindTokenOnLeftOfPosition(position, cancellationToken); | |||
var token = tree.FindTokenOnLeftOfPosition(position, cancellationToken) | |||
.GetPreviousTokenIfTouchingWord(position); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a problem for VB as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 But please valiate VB and add the reverse C# test.
Thanks @CyrusNajmabadi , VB looks good and I added the comment/test you suggested. |
Fixes #18359
Tag @dotnet/roslyn-ide for review