1 instantiation of ProjectCodeModel
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ProjectCodeModelFactory.cs (1)
241var projectCodeModel = new ProjectCodeModel(_threadingContext, id, codeModelInstanceFactory, _visualStudioWorkspace, _serviceProvider, this);
15 references to ProjectCodeModel
Microsoft.VisualStudio.LanguageServices.Implementation (15)
CodeModel\FileCodeModel_Events.cs (1)
58var projectCodeModel = this.State.ProjectCodeModelFactory.GetProjectCodeModel(document.Project.Id);
CodeModel\NodeKeyValidation.cs (1)
22foreach (var projectCodeModel in projectCodeModelFactory.GetAllProjectCodeModels())
CodeModel\ProjectCodeModelFactory.cs (13)
32private readonly ConcurrentDictionary<ProjectId, ProjectCodeModel> _projectCodeModels = []; 82using var _2 = ArrayBuilder<(ProjectCodeModel projectCodeModel, string filename)>.GetInstance(out var projectCodeModelAndFileNames); 123private void AddProjectCodeModelAndFileNames(HashSet<DocumentId> documentIds, ArrayBuilder<(ProjectCodeModel, string)> projectCodeModelAndFileNames) 127var projectCodeModel = this.TryGetProjectCodeModel(documentId.ProjectId); 140ArrayBuilder<(ProjectCodeModel projectCodeModel, string filename)> projectCodeModelAndFileNames, 177static void FireEventsForDocument(ProjectCodeModel projectCodeModel, string filename) 241var projectCodeModel = new ProjectCodeModel(_threadingContext, id, codeModelInstanceFactory, _visualStudioWorkspace, _serviceProvider, this); 250public ProjectCodeModel GetProjectCodeModel(ProjectId id) 252if (!_projectCodeModels.TryGetValue(id, out var projectCodeModel)) 254throw new InvalidOperationException($"No {nameof(ProjectCodeModel)} exists for project with ID {id}"); 260public IEnumerable<ProjectCodeModel> GetAllProjectCodeModels() 266public ProjectCodeModel TryGetProjectCodeModel(ProjectId id) 268_projectCodeModels.TryGetValue(id, out var projectCodeModel);