2 instantiations of ProjectState
Microsoft.VisualStudio.LanguageServices (2)
Packaging\PackageInstallerService.ProjectState.cs (1)
14
public static readonly ProjectState Disabled =
new
(isEnabled: false, ImmutableDictionary<string, string>.Empty);
Packaging\PackageInstallerServiceFactory.cs (1)
581
return new
ProjectState
(installedPackagesMap);
8 references to ProjectState
Microsoft.VisualStudio.LanguageServices (8)
Packaging\PackageInstallerService.ProjectState.cs (1)
14
public static readonly
ProjectState
Disabled = new(isEnabled: false, ImmutableDictionary<string, string>.Empty);
Packaging\PackageInstallerServiceFactory.cs (7)
81
private readonly ConcurrentDictionary<ProjectId,
ProjectState
> _projectToInstalledPackageAndVersion = [];
204
if (_projectToInstalledPackageAndVersion.TryGetValue(projectId, out
var
state))
552
ProjectState
? newState = null;
568
_projectToInstalledPackageAndVersion[projectId] = newState ??
ProjectState
.Disabled;
571
private static async Task<
ProjectState
?> GetCurrentProjectStateAsync(
607
return _projectToInstalledPackageAndVersion.TryGetValue(projectId, out
var
installedPackages) &&
616
foreach (
var
state in _projectToInstalledPackageAndVersion.Values)