-
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
Fix completions after unsafe
in using directive
#68334
Fix completions after unsafe
in using directive
#68334
Conversation
yield return new[] { "abstract" }; | ||
yield return new[] { "class" }; | ||
yield return new[] { "delegate" }; | ||
yield return new[] { "file" }; |
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.
file
would be fine. it's just a normal identifier.
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.
In this context file
comes from a keyword recommender and therefore has keyword glyph. I think, this makes it more confusing than helpful. Also leaving file
here would introduce a major inconsistency since neither file
nor any other contextual keyword is shown in name context, where it can be treated as identifier
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.
wfm.
note: i would far prefer these tests be in their respective provider test files. In other words, we should test 'class' in the tests for 'class'.
src/EditorFeatures/CSharpTest/Completion/CompletionProviders/SymbolCompletionProviderTests.cs
Outdated
Show resolved
Hide resolved
@CyrusNajmabadi PTAL/merge |
looking |
Thanks! |
Fixes: #67985