Implements following public API changes to fix bug 1066530.
CodeFixProvider: 1. "Task<IEnumerable<CodeAction>> GetFixesAsync(CodeFixContext)" becomes "Task ComputeFixesAsync(CodeFixContext)". 2. CodeFixContext now has a new method - "void RegisterFix(CodeAction, IEnumerable<Diagnostic>>)". This API now allows providers to map each returned code action to the set of diagnostics being fixed by this code action. CodeRefactoringProvider gets identical API changes for consistency: 3. "Task<IEnumerable<CodeAction>> GetRefactoringsAsync(CodeFixContext)" becomes "Task ComputeRefactoringsAsync(CodeFixContext)". 4. CodeRefactoingContext now has a new method - "void RegisterRefactoring(CodeAction)". Also moves all our existing fix and refactoring providers (including samples and sdk templates) over to the new API. (changeset 1363085)
Showing
想要评论请 注册 或 登录