dotnet/roslyn

Don't get offered usings/spell checker etc inside the method body of an abstract method

オープン

#19,140 opened on 2017/05/01

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-CompilersBughelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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; 
        }
    }
  1. CTRL+. on String

Expected: To get offered to add "using System;" Actual: Nothing.

コントリビューターガイド