1 write to ProjectId
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentId.cs (1)
32this.ProjectId = projectId;
215 references to ProjectId
AnalyzerRunner (3)
DiagnosticAnalyzerRunner.cs (3)
126var sumOfDocumentAverages = documentPerformance.Where(x => x.Key.ProjectId == projectId).Sum(x => x.Value.EditsPerSecond); 127double documentCount = documentPerformance.Where(x => x.Key.ProjectId == projectId).Count(); 134var slowestFiles = documentPerformance.OrderBy(pair => pair.Value.EditsPerSecond).GroupBy(pair => pair.Key.ProjectId);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
173workspace.OnParseOptionsChanged(document.Id.ProjectId, 201workspace.OnParseOptionsChanged(document.Id.ProjectId,
Microsoft.CodeAnalysis.EditorFeatures (12)
EditAndContinue\ActiveStatementTrackingService.cs (1)
205solution = solution.WithUpToDateSourceGeneratorDocuments(openDocumentIds.Select(static d => d.ProjectId));
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (1)
64var project = workspace.CurrentSolution.GetProject(diagnostic.DocumentId.ProjectId);
IntelliSense\NavigationActionFactory.cs (1)
64var project = solution.GetRequiredProject(documentId.ProjectId);
Preview\AbstractPreviewFactoryService.cs (6)
96previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c => 103previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c => 117previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c => 124previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c => 138previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c => 145previewItems.Add(new SolutionPreviewItem(documentId.ProjectId, documentId, async c =>
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (1)
48if (relatedDocumentIds.Any(static (d, e) => d.ProjectId == e.ProjectId, e))
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
77var projectId = e.ProjectId ?? e.DocumentId?.ProjectId;
Suggestions\SuggestedActionWithNestedFlavors.cs (1)
158var preferredProjectId = preferredDocumentId?.ProjectId;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticDataTests.cs (2)
234var project = workspace.CurrentSolution.GetRequiredProject(documentId.ProjectId); 249projectId: documentId.ProjectId,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticProviderTests.vb (2)
318result.Add(SourceError(Id, message, documentId, documentId.ProjectId, mappedLine, originalLine, mappedColumn, originalColumn, mappedFile, originalFile)) 320result.Add(SourceWarning(Id, message, documentId, documentId.ProjectId, mappedLine, originalLine, mappedColumn, originalColumn, mappedFile, originalFile))
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Remote\JsonSerializableDocumentId.cs (1)
19return new JsonSerializableDocumentId(documentId.ProjectId.Id, documentId.Id);
Microsoft.CodeAnalysis.Features (43)
CodeLens\CodeLensReferencesService.cs (2)
91var projectVersion = await GetProjectCodeLensVersionAsync(solution, documentId.ProjectId, cancellationToken).ConfigureAwait(false); 158documentId.ProjectId.Id,
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
368var totalProjects = contextAndSymbolLists.SelectAsArray(t => t.documentId.ProjectId); 463missingSymbols.GetOrAdd(symbol, m => ArrayBuilder<ProjectId>.GetInstance()).Add(documentId.ProjectId);
Completion\Providers\SymbolCompletionItem.cs (2)
210if (supportedPlatforms != null && supportedPlatforms.InvalidProjects.Contains(document.Id.ProjectId)) 212var contextId = document.GetLinkedDocumentIds().FirstOrDefault(id => !supportedPlatforms.InvalidProjects.Contains(id.ProjectId));
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
125if (!solution.GetRequiredProject(priorityDocumentId.ProjectId).SupportsCompilation)
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (2)
118if (_clearedProjectIds.Contains(documentId.ProjectId)) 121if (!_analyzedProjectToDiagnostics.TryGetValue(documentId.ProjectId, out var diagnostics))
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
198if (documentId.ProjectId == project.Id)
EditAndContinue\CommittedSolution.cs (3)
295Debug.Assert(_solution.ContainsProject(documentId.ProjectId)); 468static (documentId, _, args) => args.oldStaleProjects.ContainsKey(documentId.ProjectId) && !args.staleProjects.ContainsKey(documentId.ProjectId),
EditAndContinue\DebuggingSession.cs (3)
727documentIndicesByMappedPath.MultiAdd(document.FilePath, (documentId.ProjectId, i)); 728projectIds.Add(documentId.ProjectId); 820(unmappedDocumentId, span) = newSpans.Single(ns => ns.unmappedDocumentId.ProjectId == projectId);
EditAndContinue\EditAndContinueService.cs (1)
186group documentId by documentId.ProjectId into projectDocumentIds
EditAndContinue\EditSession.cs (1)
1384diagnosticBuilders.MultiAdd(documentId.ProjectId, diagnostic);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
239linkedProjectIds.AddRange(linkedDocumentIds.Select(d => d.ProjectId)); 289.Filter((documentId, span) => !linkedProjectIds.Contains(documentId.ProjectId) && filter(documentId, span))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (5)
278var project = solution.GetRequiredProject(documentId.ProjectId); 289var oldProject = oldSolution.GetRequiredProject(documentId.ProjectId); 290var newProject = newSolution.GetRequiredProject(documentId.ProjectId); 534if (_projectOrDocumentIds.Contains(documentId.ProjectId)) 671var project = solution.GetProject(documentId.ProjectId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (4)
25if (_documentWorkQueue.TryGetValue(key.ProjectId, out var documentMap) && 32_documentWorkQueue.Remove(key.ProjectId); 101if (_documentWorkQueue.TryGetValue(key.ProjectId, out var documentMap) && 116_documentWorkQueue.Add(key.ProjectId, documentMap);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
249return $"Tick:{tick}, {documentId}, {documentId.ProjectId}, Replaced:{replaced}";
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (3)
31private static readonly Func<int, DocumentId, bool, string> s_enqueueLogger = (tick, documentId, hint) => $"Tick:{tick}, {documentId}, {documentId.ProjectId}, hint:{hint}"; 177var projectId = thisDocument.Id.ProjectId; 187await _processor.EnqueueWorkItemAsync(solution.GetRequiredProject(documentId.ProjectId), documentId, document: null).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (4)
66Debug.Assert(documentId == null || documentId.ProjectId == projectId); 83: this(documentId, documentId.ProjectId, language, invocationReasons, isLowPriority, activeMember, [], retry: false, asyncToken) 88: this(documentId, documentId.ProjectId, language, invocationReasons, isLowPriority, activeMember: null, 149DocumentId.ProjectId,
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
273workspace.OnProjectRemoved(documentIdInfo.DocumentId.ProjectId);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
193oldSolution, sourceDocId.ProjectId, selectedMembers, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
61linkedIndices.Add((linkedIndex, linkedDocumentId.ProjectId));
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
120var candidateProjects = candidateResults.SelectAsArray(result => result.docId.ProjectId); 129invalidProjects.Add(docId.ProjectId);
ValueTracking\ValueTrackingService.cs (1)
63var project = solution.GetRequiredProject(previousTrackedItem.DocumentId.ProjectId);
Microsoft.CodeAnalysis.Features.UnitTests (4)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
2699EmitAndLoadLibraryToDebuggee(documentId.ProjectId, source1); 2972var moduleId = EmitAndLoadLibraryToDebuggee(documentId.ProjectId, source1, sourceFilePath: sourceFile.Path); 3578AssertEx.SetEqual([documentBId.ProjectId], results.ProjectsToRebuild); 3579AssertEx.SetEqual([documentBId.ProjectId], results.ProjectsToRestart.Keys);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\SourceGeneratedDocumentUri.cs (1)
35var projectId = identity.DocumentId.ProjectId.Id.ToString(GuidFormat);
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
47var project = context.Solution.GetRequiredProject(documentId.ProjectId);
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
76var projectId = e.ProjectId ?? e.DocumentId?.ProjectId;
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
103var project = CurrentSolution.GetRequiredProject(matchingDocument.ProjectId);
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
PublicApiFixHelpers.cs (1)
33return $"{ApiDocEquivalenceKeyPrefix};{doc.ProjectId.Id};{doc.Id};{isPublic}";
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (4)
45using (Logger.LogBlock(FunctionId.CodeAnalysisService_GetReferenceCountAsync, documentId.ProjectId.DebugName, cancellationToken)) 68using (Logger.LogBlock(FunctionId.CodeAnalysisService_FindReferenceLocationsAsync, documentId.ProjectId.DebugName, cancellationToken)) 86using (Logger.LogBlock(FunctionId.CodeAnalysisService_FindReferenceMethodsAsync, documentId.ProjectId.DebugName, cancellationToken)) 106using (Logger.LogBlock(FunctionId.CodeAnalysisService_GetFullyQualifiedName, documentId.ProjectId.DebugName, cancellationToken))
Microsoft.CodeAnalysis.Workspaces (85)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
69foreach (var group in docIdToTextMerger.GroupBy(kvp => kvp.Key.ProjectId))
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
101.GroupBy(d => d.ProjectId) 438if (_documentIdOfRenameSymbolDeclaration.ProjectId == projectId)
Rename\Renamer.RenameDocumentActionSet.cs (1)
140var project = solution.GetRequiredProject(_documentId.ProjectId);
Rename\RenameUtilities.cs (2)
95.Select(d => d.ProjectId).Distinct(); 100var isSubset = renameLocations.Select(l => l.DocumentId.ProjectId).Distinct().Except(projectIdsOfRenameSymbolDeclaration).IsEmpty();
Shared\Extensions\ProjectExtensions.cs (1)
32=> project.Solution.GetDocumentIdsWithFilePath(filePath).FirstOrDefault(id => id.ProjectId == project.Id);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
82var project = solution.GetRequiredProject(documentId.ProjectId);
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (2)
48WorkspaceChangeProjectId = documentId.ProjectId; 55if (documentId.ProjectId == WorkspaceChangeProjectId)
Workspace\Solution\AssetPath.cs (1)
52: this(kind, documentId?.ProjectId, documentId)
Workspace\Solution\DocumentId.cs (4)
75this.ProjectId == other.ProjectId; 79=> Hash.Combine(this.ProjectId, this.Id.GetHashCode()); 89this.ProjectId.WriteTo(writer);
Workspace\Solution\Project.cs (3)
342if (this.Id != documentId.ProjectId) 376if (this.Id != documentId.ProjectId) 817if (documentId?.ProjectId != this.Id)
Workspace\Solution\Solution.cs (14)
248=> GetProject(documentId?.ProjectId)?.GetDocument(documentId!); 255var project = GetProject(documentId?.ProjectId); 270var project = GetProject(documentId?.ProjectId); 287return this.GetProject(documentId.ProjectId)!.GetAdditionalDocument(documentId); 300return this.GetProject(documentId.ProjectId)!.GetAnalyzerConfigDocument(documentId); 308var project = GetProject(documentId.ProjectId); 337var generatedDocument = this.GetRequiredProject(documentState.Id.ProjectId).TryGetSourceGeneratedDocumentForAlreadyGeneratedId(documentState.Id); 947var project = GetRequiredProjectState(documentId.ProjectId); 968var project = GetRequiredProjectState(documentId.ProjectId); 987var project = GetRequiredProjectState(documentId.ProjectId); 1021var project = GetRequiredProjectState(documentId.ProjectId); 1114var project = GetRequiredProjectState(documentId.ProjectId); 1642var newProject = newSolution.GetRequiredProject(newDocumentState.Id.ProjectId); 1775var project = this.GetProject(documentId.ProjectId);
Workspace\Solution\SolutionCompilationState.cs (10)
838.GroupBy(static d => d.documentId.ProjectId) 1269return GetCompilationTracker(documentId.ProjectId).TryGetSourceGeneratedDocumentStateForAlreadyGeneratedId(documentId); 1350.Select(static state => state.Identity.DocumentId.ProjectId) 1424var projectState = this.SolutionState.GetRequiredProjectState(documentIdentity.DocumentId.ProjectId); 1450var documentStatesByProjectId = documentStates.Values.ToMultiDictionary(static state => state.Id.ProjectId); 1724var oldProjectState = currentState.SolutionState.GetRequiredProjectState(documentId.ProjectId); 1729missingDocumentStates.MultiAdd(documentId.ProjectId, newDocumentState); 1765documentInfos.GroupBy(d => d.Id.ProjectId).Select(g => 1785var documentIdsByProjectId = documentIds.ToLookup(id => id.ProjectId); 1888var documentState = this.SolutionState.GetProjectState(documentId.ProjectId)?.DocumentStates.GetState(documentId);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (5)
22if (documentId != null && (projectId == null || documentId.ProjectId == projectId)) 25var projectState = this.SolutionState.GetProjectState(documentId.ProjectId); 97else if (documentId.ProjectId != projectId) 102$"Syntax tree for a body symbol should map to the same project as the body symbol's assembly:\r\n{symbol.Kind}\r\n{symbol.Name}\r\n{syntaxTree.FilePath}\r\n{projectId}\r\n{documentId.ProjectId}"); 185return new OriginatingProjectInfo(document.Id.ProjectId, Compilation: null, ReferencedThrough: null);
Workspace\Solution\SolutionState.cs (27)
299this.ContainsProject(documentId.ProjectId) && 300this.GetProjectState(documentId.ProjectId)!.DocumentStates.Contains(documentId); 310this.ContainsProject(documentId.ProjectId) && 311this.GetProjectState(documentId.ProjectId)!.AdditionalDocumentStates.Contains(documentId); 321this.ContainsProject(documentId.ProjectId) && 322this.GetProjectState(documentId.ProjectId)!.AnalyzerConfigDocumentStates.Contains(documentId); 326=> GetRequiredProjectState(documentId.ProjectId).DocumentStates.GetRequiredState(documentId); 329=> GetRequiredProjectState(documentId.ProjectId).AdditionalDocumentStates.GetRequiredState(documentId); 332=> GetRequiredProjectState(documentId.ProjectId).AnalyzerConfigDocumentStates.GetRequiredState(documentId); 981var oldProject = GetRequiredProjectState(documentId.ProjectId); 997var oldProject = GetRequiredProjectState(documentId.ProjectId); 1009var oldProject = GetRequiredProjectState(newDocument.Id.ProjectId); 1025var oldProject = GetRequiredProjectState(documentId.ProjectId); 1041var oldProject = GetRequiredProjectState(documentId.ProjectId); 1057var oldProject = GetRequiredProjectState(documentId.ProjectId); 1073var oldProject = GetRequiredProjectState(documentId.ProjectId); 1089var oldProject = GetRequiredProjectState(documentId.ProjectId); 1105var oldProject = GetRequiredProjectState(documentId.ProjectId); 1149var oldProject = GetRequiredProjectState(newDocument.Id.ProjectId); 1162var oldProject = GetRequiredProjectState(newDocument.Id.ProjectId); 1173var oldProject = GetRequiredProjectState(newDocument.Id.ProjectId); 1277Contract.ThrowIfTrue(documentId.ProjectId == relatedProjectIdHint); 1279var projectState = this.GetProjectState(documentId.ProjectId); 1298if (relatedDocumentId != documentId && relatedDocumentId.ProjectId != documentId.ProjectId) 1331var projectState = this.GetProjectState(documentId.ProjectId); 1358var projectState = @this.GetProjectState(documentId.ProjectId);
Workspace\Workspace.cs (7)
337if (addedDocumentId.ProjectId == relatedProjectIdHint) 357Contract.ThrowIfTrue(relatedDocumentId.ProjectId == addedDocumentId.ProjectId); 359relatedProjectIdHint = relatedDocumentId.ProjectId; 1087foreach (var projectId in data.documentInfos.Select(i => i.Id.ProjectId).Distinct()) 1397CheckProjectIsInSolution(oldSolution, documentId.ProjectId); 1435CheckProjectIsInSolution(oldSolution, documentId.ProjectId);
Workspace\Workspace_Editor.cs (3)
89_projectToOpenDocumentsMap.MultiRemove(documentId.ProjectId, documentId); 183return _projectToOpenDocumentsMap.TryGetValue(documentId.ProjectId, out var openDocuments) && 508_projectToOpenDocumentsMap.MultiAdd(documentId.ProjectId, documentId);
Workspace\Workspace_Events.cs (1)
105projectId = documentId.ProjectId;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
455var project = this.CurrentSolution.GetRequiredProject(info.Id.ProjectId);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (11)
Workspaces\TestHostDocument.cs (1)
168Contract.ThrowIfFalse(project.Id == this.Id.ProjectId);
Workspaces\TestWorkspace`1.cs (10)
326=> GetTestProject(documentId.ProjectId); 378var hostProject = this.GetTestProject(info.Id.ProjectId); 392var hostProject = this.GetTestProject(documentId.ProjectId); 404var hostProject = this.GetTestProject(info.Id.ProjectId); 414var hostProject = this.GetTestProject(documentId.ProjectId); 428var hostProject = this.GetTestProject(info.Id.ProjectId); 438var hostProject = this.GetTestProject(documentId.ProjectId); 532return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 548this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AdditionalDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 555this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AnalyzerConfigDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
271var projectId = documentId.ProjectId; 5874(_, _) => (WorkspaceChangeKind.DocumentChanged, documentId1.ProjectId, documentId1));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
112var docProjectId = documentId.ProjectId;
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
112var docProjectId = documentId.ProjectId;
Microsoft.VisualStudio.LanguageServices (32)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
126var currentProject = project.Solution.GetProject(activeDocument.ProjectId);
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
119var documentId = documentIds.FirstOrDefault(id => id.ProjectId == projectId);
CodeLens\CodeLensCallbackListener.cs (3)
103var currentProjectVersion = await service.GetProjectCodeLensVersionAsync(solution, documentId.ProjectId, cancellationToken).ConfigureAwait(false); 138var projectVersion = await service.GetProjectCodeLensVersionAsync(solution, documentId.ProjectId, cancellationToken).ConfigureAwait(false); 240if (_workspace.GetProjectGuid(candidateId.ProjectId) == projectGuid)
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
69var hierarchy = workspace.GetHierarchy(id.ProjectId);
NavigationBar\NavigationBarClient.cs (1)
277if (_workspace.TryGetHierarchy(projectItem.DocumentId.ProjectId, out var hierarchy))
Packaging\PackageInstallerServiceFactory.cs (1)
275var projectId = documentId.ProjectId;
Preview\PreviewEngine.cs (1)
163var orderedChangedDocuments = changedDocuments.GroupBy(d => d.ProjectId).OrderByDescending(g => g.Count()).Flatten();
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
329if (projectId == documentId.ProjectId)
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddDocumentUndoUnit.cs (1)
22: base(workspace, docInfo.Id.ProjectId)
ProjectSystem\VisualStudioWorkspaceImpl.AbstractRemoveDocumentUndoUnit.cs (1)
21: base(workspace, documentId.ProjectId)
ProjectSystem\VisualStudioWorkspaceImpl.cs (8)
254return _projectCodeModelFactory.Value.GetOrCreateFileCodeModel(documentId.ProjectId, document.FilePath!); 642filePathToMappedTextChanges.Add(filePath, (textChange, docId.ProjectId)); 741GetProjectData(info.Id.ProjectId, out _, out var project); 899if (PathUtilities.GetDirectoryName(CurrentSolution.GetProject(documentInfo.Id.ProjectId)?.FilePath) == solutionDirectory) 1244GetProjectData(updatedInfo.Id.ProjectId, out var _, out var dteProject); 1332return CurrentSolution.GetRequiredProject(documentId.ProjectId).Language switch 1369var hierarchy = GetHierarchy(documentId.ProjectId); 1384if (projects.Any(p => p.Id == documentId.ProjectId))
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (5)
148activeContextProjectId = documentIds.First().ProjectId; 152activeContextProjectId = GetActiveContextProjectIdAndWatchHierarchies_NoLock(moniker, documentIds.Select(d => d.ProjectId), hierarchy); 163var isCurrentContext = documentId.ProjectId == activeContextProjectId; 285var activeProjectId = GetActiveContextProjectIdAndWatchHierarchies_NoLock(moniker, documentIds.Select(d => d.ProjectId), hierarchy); 286w.OnDocumentContextUpdated(documentIds.First(d => d.ProjectId == activeProjectId));
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
59foreach (var projectId in documentIds.Select(i => i.ProjectId).Distinct())
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
471foreach (var group in builder.GroupBy(kvp => kvp.Key.ProjectId))
TaskList\ProjectExternalErrorReporter.cs (1)
206.Where(f => f.ProjectId == _projectId)
Workspace\SourceGeneratedFileManager.cs (3)
335var project = this.Workspace.CurrentSolution.GetProject(_documentIdentity.DocumentId.ProjectId); 427var projectId = _documentIdentity.DocumentId.ProjectId; 519this._documentIdentity.DocumentId.ProjectId,
Workspace\VisualStudioWorkspaceUtilities.cs (1)
32hierarchy = visualStudioWorkspace.GetHierarchy(document.Id.ProjectId);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
370if (CurrentSolution.ContainsProject(id.ProjectId))
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
97Data = new CompletionResolveData { ProjectGuid = documentId.ProjectId.Id, DocumentGuid = documentId.Id, Position = position, DisplayText = xamlCompletion.DisplayText }
Implementation\XamlProjectService.cs (2)
170var documentId = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(filePath).Single(d => d.ProjectId == project.Id); 258var documentId = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(newMoniker).Single(d => d.ProjectId == project.Id);