dotnet/roslyn
Don't get offered usings/spell checker etc inside the method body of an abstract method
开放
#19,140 创建于 2017年5月1日
Area-CompilersBughelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
Was doing refactoring where I wanted to convert an abstract method -> virtual method, I added a body to the abstract method and while I got normal intellisense, I did not offered usings or spelling check code actions, etc until I removed the "abstract".
This feels strange to be me, because other invalid constructs such as unrecognized modifiers don't stop me from getting offered these.
class Program
{
internal abstract void Method()
{
String foo;
}
}
- CTRL+. on String
Expected: To get offered to add "using System;" Actual: Nothing.