提交 23a14d31 编写于 作者: A Abraham Hosch

Respond to comments (2)

上级 04b0d3df
......@@ -16,7 +16,6 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.DocumentationComme
End Function
Private Overloads Async Function TestAsync(ByVal initial As String, ByVal expected As String) As Task
Dim parseOptions = TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)
Await TestAsync(initial, expected, parseOptions:=parseOptions, compareTokens:=False)
End Function
......
......@@ -8,7 +8,7 @@
namespace Microsoft.CodeAnalysis.DiagnosticComments.CodeFixes
{
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.RemoveDuplicateParamTag), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.RemoveDocCommentNode), Shared]
[ExtensionOrder(After = PredefinedCodeFixProviderNames.ImplementInterface)]
internal class CSharpRemoveDocCommentNodeCodeFixProvider : AbstractRemoveDocCommentNodeCodeFixProvider
{
......
......@@ -13,7 +13,7 @@ internal static class PredefinedCodeFixProviderNames
public const string ConvertToAsync = "Convert To Async";
public const string ConvertToIterator = "Convert To Iterator";
public const string CorrectNextControlVariable = "Correct Next Control Variable";
public const string RemoveDuplicateParamTag = "Remove Duplicate Param Tag";
public const string RemoveDocCommentNode = "Remove Doc Comment Node";
public const string AddMissingReference = "Add Missing Reference";
public const string AddUsingOrImport = "Add Using or Import";
public const string FullyQualify = "Fully Qualify";
......
......@@ -25,8 +25,6 @@ internal abstract class AbstractRemoveDocCommentNodeCodeFixProvider : CodeFixPro
public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
{
var diagnostic = context.Diagnostics.First();
context.RegisterCodeFix(
new MyCodeAction(
c => RemoveDuplicateParamTagAsync(context.Document, context.Span, c)),
......
......@@ -7,7 +7,7 @@ Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic
Namespace Microsoft.CodeAnalysis.DiagnosticComments.CodeFixes
<ExportCodeFixProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeFixProviderNames.RemoveDuplicateParamTag), [Shared]>
<ExportCodeFixProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeFixProviderNames.RemoveDocCommentNode), [Shared]>
Friend Class VisualBasicRemoveDocCommentNodeCodeFixProvider
Inherits AbstractRemoveDocCommentNodeCodeFixProvider
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册