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
Suggestion: VB.NET lightbulb for removing setter bulk code #31101
Comments
@hartmair Would you be interested in contributing such a fix? |
Interesting... would this fall into "code style" or "code quality"? I can imagine some people preferring to always be explicit here. |
I would count it as 'style' as it's effectively a decision about implicit/explicit naming here. It feels like it would fit naturally into our 'fade out if necessary and can be trivially removed' bucket. |
@Neme12 Would you like to take this one? |
I'll add this to my backlog, but VB is not something I am super excited about 😄 |
fair enough :) |
Yes, however, I would need a lot of guidance since I don't know anything of Roslyn yet.
thx. I am glad to help if it is useful to you. |
Would this be done with an Analyzer/CodeFixProvider? |
@jrmoreno1 Yes it would. |
I'd be willing to take it on as well, if @Neme12 doesn't mind. The diagnostic and code fix in themselves aren’t a problem, but I’m not sure just where in the Roslyn source tree they should go. roslyn/src/Features/VisualBasic/Portable? With a name like RemoveUnecessarySetParameter? |
Should it be in VB or C#? |
@jrmoreno1 This should be written in VB. Here are the rules for IDE features:
|
@CyrusNajmabadi : what version of the framework? |
@jrmoreno1 i don't understand your question. can you clarify it? |
Perhaps it’s a silly question. I was first going to create a project outside of the Roslyn solution and wanted to know what framework version to use, but on thinking about it that probably won’t mattter when I figure out where to put it. I’ll try to get further on my own before bothering you again. Also, I somehow missed your comments on where it should go on first reading, thanks for the additional info. |
@jrmoreno1 Ah gotcha. And don't worry about bothering me. I'm happy to help. Note: it may be faster to use gitter.im for that purpose though. |
@hartmair, @CyrusNajmabadi : GeneratedCodeAttribute, CompilerGeneratedAttribute, DesignerGenerated, SuppressMessageAttribute, others? If checking for this, do so at the class or property level? |
It would be nice to have a lightbulb quickaction for removing redundant setter bulk code
(value as …)
. Originated from dotnet/vblang#344 (comment)Version Used:
15.8.9
15.9.0 Preview 5.0
Steps to Reproduce:
Expected Behavior:
Lightbulb QuickAction to remove redundant setter bulk code
(value as ...)
Actual Behavior:
None
The text was updated successfully, but these errors were encountered: