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