28 references to IPackageInstallerService
Microsoft.CodeAnalysis.CSharp.Features (1)
AddImport\CSharpAddImportCodeFixProvider.cs (1)
205IPackageInstallerService installerService,
Microsoft.CodeAnalysis.Features (27)
AddImport\AbstractAddImportCodeFixProvider.cs (4)
18private readonly IPackageInstallerService? _packageInstallerService; 25IPackageInstallerService? packageInstallerService = null, 63var installerService = searchOptions.SearchNuGetPackages ? 64_packageInstallerService ?? services.GetService<IPackageInstallerService>() : null;
AddImport\AbstractAddImportFeatureService.cs (2)
581IPackageInstallerService? installerService, int maxResults) 595private static CodeAction? TryCreateCodeAction(Document document, AddImportFixData fixData, IPackageInstallerService? installerService)
AddImport\CodeActions\InstallWithPackageManagerCodeAction.cs (4)
17IPackageInstallerService installerService, 20private readonly IPackageInstallerService _installerService = installerService; 33IPackageInstallerService installerService, 36private readonly IPackageInstallerService _installerService = installerService;
AddImport\IAddImportFeatureService.cs (1)
42IPackageInstallerService? installerService, int maxResults);
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
38workspaceServices.GetService<IPackageInstallerService>() is not { } installerService ||
AddPackage\InstallPackageDirectlyCodeAction.cs (1)
15IPackageInstallerService installerService,
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (2)
23private readonly IPackageInstallerService _installerService; 32IPackageInstallerService installerService,
AddPackage\InstallPackageParentCodeAction.cs (3)
26IPackageInstallerService installerService, 41IPackageInstallerService installerService, 65IPackageInstallerService installerService,
AddPackage\InstallWithPackageManagerCodeAction.cs (2)
15IPackageInstallerService installerService, string packageName) : CodeAction 17private readonly IPackageInstallerService _installerService = installerService;
AddPackage\ParentInstallPackageCodeAction.cs (5)
58IPackageInstallerService installerService) 69IPackageInstallerService? installerService) 71installerService ??= document.Project.Solution.Services.GetService<IPackageInstallerService>(); 81IPackageInstallerService installerService) 110IPackageInstallerService installerService,
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (2)
80var packageInstallerService = solution.Services.GetService<IPackageInstallerService>();