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

Lightbulbs to add usings blocked by similar namespaces #61880

Closed
dpugh opened this issue Jun 14, 2022 · 2 comments
Closed

Lightbulbs to add usings blocked by similar namespaces #61880

dpugh opened this issue Jun 14, 2022 · 2 comments
Labels
Area-IDE Need Design Review The end user experience design needs to be reviewed and approved.
Milestone

Comments

@dpugh
Copy link

dpugh commented Jun 14, 2022

Version Used:
32611.49.main

Steps to Reproduce:
I’ve noticed that I’m not getting as many lightbulbs to add missing usings as I have before (this problem has probably been around a while but I just hit an egregious case today). See below for more details but expected an “add using” lightbulb to appear in this situation. Is my expectation wrong or did something break?

image

The error would be resolved with an added "using Microsoft.VisualStudio.IntelliCode.Core;" but that is apparently being blocked because there is also a "Microsoft.VisualStudio.Utilities" that is confounding the analyzer:
image

Based on discussions with Cyrus/Jason it seems this is expected (but annoying) behavior because of the confounding namespace. That said, it would be nice if the added using was proposed as a suggestion since it would fix the problem.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 14, 2022
@CyrusNajmabadi
Copy link
Member

Note: this will only work in David's case, because he has usings inside a namespace, and so the new using will take precedence over the symbol found in the containing namespace.

@vatsalyaagrawal vatsalyaagrawal added Need Design Review The end user experience design needs to be reviewed and approved. and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 8, 2022
@vatsalyaagrawal vatsalyaagrawal added this to the Backlog milestone Jul 8, 2022
@CyrusNajmabadi
Copy link
Member

Closing out due to lack of feedback.

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@dotnet dotnet locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-IDE Need Design Review The end user experience design needs to be reviewed and approved.
Projects
Status: Complete
Development

No branches or pull requests

3 participants