-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-IDEBugLanguage-C#
Milestone
Description
Ported from TFS WorkItem: 529860
Repro Steps:
- Create a new C# library.
- Surround any existing classes with a namespace, if they're not already there.
- Start typing an attribute before the namespace.
ACTUAL RESULT
Completion list doesn't apear as I type [assembly] keyword
EXPECTED RESULT
assembly keyword should have been recommended
- Edited By Jason Malinowski (11/28/2012 7:33:06 PM)
This is being caused by poor parser recovery. If it's before a class or anything else, the parser will start to parse it as a attribute. But if it's before a namespace, it gives up and just skips the [ token.
(TFS Integration from 'DevdivProjects-Roslyn' Id: 14628 (rev 3);)
- Edited By Kevin Pilch-Bisson (5/1/2014 9:00:18 AM)
The request is that when you have:
[
namespace Fooor
[]
namespace Fooor
[a]
namespace FooFor the parser to treat the [ (and subsequent) tokens as part of an attribute with a missing name, instead of just skipping them entirely.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-IDEBugLanguage-C#