120 references to RazorPredefinedCodeFixProviderNames
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorPredefinedProviderNameTests.cs (1)
19[InlineData(typeof(PredefinedCodeFixProviderNames), typeof(RazorPredefinedCodeFixProviderNames))]
Microsoft.CodeAnalysis.Razor.Workspaces (14)
CodeActions\CodeActionsService.cs (1)
272var codeFixProviderNames = typeof(RazorPredefinedCodeFixProviderNames)
CodeActions\CSharp\CSharpCodeActionProvider.cs (11)
40RazorPredefinedCodeFixProviderNames.ImplementAbstractClass, 41RazorPredefinedCodeFixProviderNames.ImplementInterface, 42RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable, 43RazorPredefinedCodeFixProviderNames.GenerateConversion, 44RazorPredefinedCodeFixProviderNames.GenerateConstructor, 45RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod, 46RazorPredefinedCodeFixProviderNames.GenerateMethod, 47RazorPredefinedCodeFixProviderNames.GenerateVariable, 52RazorPredefinedCodeFixProviderNames.GenerateConstructor, 53RazorPredefinedCodeFixProviderNames.GenerateMethod, 54RazorPredefinedCodeFixProviderNames.GenerateVariable,
CodeActions\CSharp\TypeAccessibilityCodeActionProvider.cs (2)
163if (codeAction.Name is not null && codeAction.Name.Equals(RazorPredefinedCodeFixProviderNames.FullyQualify, StringComparison.Ordinal)) 196else if (codeAction.Name is not null && codeAction.Name.Equals(RazorPredefinedCodeFixProviderNames.AddImport, StringComparison.Ordinal) &&
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (58)
Cohost\CohostRoslynCodeActionTest.cs (11)
61codeActionName: RazorPredefinedCodeFixProviderNames.GenerateMethod); 103codeActionName: RazorPredefinedCodeFixProviderNames.GenerateMethod); 151codeActionName: RazorPredefinedCodeFixProviderNames.GenerateMethod); 201codeActionName: RazorPredefinedCodeFixProviderNames.GenerateMethod); 240codeActionName: RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod); 274codeActionName: RazorPredefinedCodeFixProviderNames.GenerateVariable, 314codeActionName: RazorPredefinedCodeFixProviderNames.GenerateConstructor, 362codeActionName: RazorPredefinedCodeFixProviderNames.GenerateConstructor, 406codeActionName: RazorPredefinedCodeFixProviderNames.GenerateVariable, 441codeActionName: RazorPredefinedCodeFixProviderNames.GenerateVariable, 484codeActionName: RazorPredefinedCodeFixProviderNames.GenerateVariable,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\AddUsingTests.cs (8)
151codeActionName: RazorPredefinedCodeFixProviderNames.AddImport, 180codeActionName: RazorPredefinedCodeFixProviderNames.AddImport, 202await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport); 230RazorPredefinedCodeFixProviderNames.AddImport, 260RazorPredefinedCodeFixProviderNames.AddImport, 291RazorPredefinedCodeFixProviderNames.AddImport, 315await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport); 342await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CSharpCodeActionTests.cs (4)
478await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 494await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 508await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 527await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateConstructorTests.cs (6)
47RazorPredefinedCodeFixProviderNames.GenerateConstructor, 96RazorPredefinedCodeFixProviderNames.GenerateConstructor, 129RazorPredefinedCodeFixProviderNames.GenerateConstructor, 164codeActionName: RazorPredefinedCodeFixProviderNames.GenerateConstructor, 208RazorPredefinedCodeFixProviderNames.GenerateConstructor, 241RazorPredefinedCodeFixProviderNames.GenerateConstructor,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateConversionTests.cs (2)
45RazorPredefinedCodeFixProviderNames.GenerateConversion, 70RazorPredefinedCodeFixProviderNames.GenerateConversion,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateDeconstructMethodTests.cs (2)
45RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod, 74RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateFieldTests.cs (5)
45RazorPredefinedCodeFixProviderNames.GenerateVariable, 78RazorPredefinedCodeFixProviderNames.GenerateVariable, 100RazorPredefinedCodeFixProviderNames.GenerateVariable, 131RazorPredefinedCodeFixProviderNames.GenerateVariable, 156RazorPredefinedCodeFixProviderNames.GenerateVariable,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateMethodTests.cs (17)
44await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 78await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 106await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 134await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 164await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 185await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 209await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 232await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 259await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 288await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 312await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 346await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 374await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 401await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 425await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 456await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 483await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GeneratePropertyTests.cs (3)
44RazorPredefinedCodeFixProviderNames.GenerateVariable, 66RazorPredefinedCodeFixProviderNames.GenerateVariable, 92RazorPredefinedCodeFixProviderNames.GenerateVariable,
Microsoft.VisualStudioCode.RazorExtension.UnitTests (47)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\AddUsingTests.cs (8)
151codeActionName: RazorPredefinedCodeFixProviderNames.AddImport, 180codeActionName: RazorPredefinedCodeFixProviderNames.AddImport, 202await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport); 230RazorPredefinedCodeFixProviderNames.AddImport, 260RazorPredefinedCodeFixProviderNames.AddImport, 291RazorPredefinedCodeFixProviderNames.AddImport, 315await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport); 342await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.AddImport);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CSharpCodeActionTests.cs (4)
478await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 494await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 508await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable); 527await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.RemoveUnusedVariable);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateConstructorTests.cs (6)
47RazorPredefinedCodeFixProviderNames.GenerateConstructor, 96RazorPredefinedCodeFixProviderNames.GenerateConstructor, 129RazorPredefinedCodeFixProviderNames.GenerateConstructor, 164codeActionName: RazorPredefinedCodeFixProviderNames.GenerateConstructor, 208RazorPredefinedCodeFixProviderNames.GenerateConstructor, 241RazorPredefinedCodeFixProviderNames.GenerateConstructor,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateConversionTests.cs (2)
45RazorPredefinedCodeFixProviderNames.GenerateConversion, 70RazorPredefinedCodeFixProviderNames.GenerateConversion,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateDeconstructMethodTests.cs (2)
45RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod, 74RazorPredefinedCodeFixProviderNames.GenerateDeconstructMethod,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateFieldTests.cs (5)
45RazorPredefinedCodeFixProviderNames.GenerateVariable, 78RazorPredefinedCodeFixProviderNames.GenerateVariable, 100RazorPredefinedCodeFixProviderNames.GenerateVariable, 131RazorPredefinedCodeFixProviderNames.GenerateVariable, 156RazorPredefinedCodeFixProviderNames.GenerateVariable,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GenerateMethodTests.cs (17)
44await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 78await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 106await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 134await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 164await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 185await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 209await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 232await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 259await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 288await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 312await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 346await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 374await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod); 401await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 425await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 456await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy); 483await VerifyCodeActionAsync(input, expected, RazorPredefinedCodeFixProviderNames.GenerateMethod, fileKind: RazorFileKind.Legacy);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\GeneratePropertyTests.cs (3)
44RazorPredefinedCodeFixProviderNames.GenerateVariable, 66RazorPredefinedCodeFixProviderNames.GenerateVariable, 92RazorPredefinedCodeFixProviderNames.GenerateVariable,