Skip to content
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

Improve Attribute Usage Handling #393

Closed
wjk opened this issue May 31, 2016 · 2 comments · Fixed by #1451
Closed

Improve Attribute Usage Handling #393

wjk opened this issue May 31, 2016 · 2 comments · Fixed by #1451

Comments

@wjk
Copy link
Contributor

wjk commented May 31, 2016

Would it be possible to improve how Visual Studio Code handles handling of Attribute usage in C# code? My request is divided into two main changes:

  1. When I tab-complete the usage of a hypothetical FooAttribute class, VSCode produces [FooAttribute]. “Full” Visual Studio on Windows produces just [Foo]. Can we harmonize the two? (This causes not-inconsequential project churn when switching back and forth between IDEs.)
  2. VSCode recognizes and provides IntelliSense for required formal parameters in the attribute’s constructor, but does not recognize named arguments. (This means that IntelliSense does not know what to do with the AllowMultiple part of [AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]. Note that the syntax-error-detection parser handles this correctly.
@jtillman
Copy link

I use Attributes heavily and attempting to fight against the current inteliisense/autocorrect from appending of "Attribute" is a huge pain.

@dmccaffery
Copy link

I've been hitting this constantly as well... might try to add a PR if work on this has not been ongoing... let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants