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