dotnet / dotnet/roslyn

Auto complete doesn't include items from unimported namespaces

Open
#81,333 0 comments 2 reactions 0 assignees View on GitHub
Area-IDE
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Auto-complete-doesnt-include-items-from/10825319)._

---
When typing with "Show items from unimported namespaces" turned on, I get suggestions correctly (with the option in the Intellisense box turned on). When I press ctrl+space to open it, the option button is turned off and therefor I don't get these suggestions. If I restart VS, the first time I press ctrl+space I will get the correct suggestions but then escape, ctrl+space and the option is turned off again.

First time I press ctrl+space:
![image.png](https://aka.ms/dc/image?name=B4a7eb21758dc4fe88cb63e631d9c29b4638719894149077152_20250108-221655-image.png&tid=4a7eb21758dc4fe88cb63e631d9c29b4638719894149077152)

Second time I press ctrl+space:
![image.png](https://aka.ms/dc/image?name=B13a8270813674fecaabee670ce322e27638719894741914280_20250108-221754-image.png&tid=13a8270813674fecaabee670ce322e27638719894741914280)

---
### Original Comments

#### Anonymized GDPR on 1/10/2025, 03:32 AM:

Thanks for your feedback! In order to further investigate this issue, I need to confirm something with you. What programming language do you use with your project? (C#, C++, or other)? It would be very helpful if you could provide some screenshots that has this problem.

#### Philippe Paré on 1/10/2025, 04:04 AM:

(private comment, text removed)
#### Feedback Bot on 1/15/2025, 09:26 AM:

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 1/16/2025, 06:52 AM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.

#### Philippe Paré on 9/11/2025, 03:19 AM:

FYI, still present in VS 2026 Insiders

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Visual Studio with "Show items from unimported namespaces" enabled, then press Ctrl+Space repeatedly after dismissing completion. Trace the Roslyn completion behavior responsible for the option state; done when the setting remains enabled and suggestions from unimported namespaces continue to appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.