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

cw snippet adds global::System.Console when i use it on lambda expressions. #58135

Open
vsfeedback opened this issue Dec 6, 2021 · 3 comments
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
When i try to use the Console.Write(); snippet inside a lambda expression it insert global::System.Console.WriteLine(); instead of Console.WriteLine();


Original Comments

Feedback Bot on 12/5/2021, 11:45 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 12/6/2021, 09:44 AM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 6, 2021
@sharwell
Copy link
Member

sharwell commented Dec 6, 2021

The following code reproduces this issue:

using System;

var obj = new T();
obj.On(() =>
{
    // ⬅️ use the 'cw' snippet here
});

class T
{
    internal void On(Action p) { }
}

@sharwell sharwell added Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed Area-Analyzers labels Dec 6, 2021
@Youssef1313
Copy link
Member

@sharwell Is the "help wanted" label intended? I think it should be "Blocked" on #31879?

@sharwell
Copy link
Member

sharwell commented Dec 6, 2021

Is the "help wanted" label intended?

@Youssef1313 yes, this is a Simplify Type Name failure (note that even after generating the type, there is no code fix offered to simplify the type name).

@jinujoseph jinujoseph removed the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 9, 2021
@jinujoseph jinujoseph added this to the Backlog milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

4 participants