dotnet/roslyn
C# intellisense suggestions missing class name in nested types
オープン
#51,699 opened on 2021/03/05
Area-IDEBugIDE-IntelliSensehelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice] Microsoft Visual Studio Community 2019 Version 16.9.0
Steps to reproduce the problem:
- Create a new C# (console) project (.NET 5.0).
- Enter the following codes:
namespace IntellisenseBug
{
public class ClassA
{
public static void MethodA()
{ }
}
public class ClassB
{
public ClassA ClassA { get; set; }
public void MethodB()
{
//ClassA.MethodA();
}
public class ClassC
{
public void MethodC()
{
//ClassA.MethodA();
}
}
}
}
- Try to type
ClassA.MethodA();inpublic void MethodB()by hand. Intellisense works as expected:
.png&tid=fe523015bd1546bf944aea8e21305e54637503631377868438)
- However, when typing
ClassA.MethodA();inpublic void MethodC()by hand, Intellisense does not work as expected:
ClassAis missing in the Intellisense suggestions.
Original Comments
Feedback Bot on 3/3/2021, 06:15 PM:
Original Solutions
(no solutions)