src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
40var project = document.Project;
Completion\CompletionService_GetCompletions.cs (7)
48var passThroughOptions = options ?? document.Project.Solution.Options;
78var providers = _providerManager.GetFilteredProviders(document.Project, roles, trigger, options);
137if (ShouldTriggerCompletion(document.Project, document.Project.Services, text, caretPosition, trigger, options, passThroughOptions, roles))
139var triggeredProviders = providers.Where(p => p.ShouldTriggerCompletion(document.Project.Services, text, caretPosition, trigger, options, passThroughOptions)).ToImmutableArrayOrEmpty();
155var extensionManager = document.Project.Solution.Services.GetRequiredService<IExtensionManager>();
329var extensionManager = document.Project.Solution.Services.GetRequiredService<IExtensionManager>();
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (6)
39=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
45=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
51=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (6)
47=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
53=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
59=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
Workspace\Solution\Document.cs (19)
116var projectVersion = this.Project.Version;
133var projectVersion = this.Project.Version;
155return this.SupportsSyntaxTree && this.Project.SupportsCompilation;
333this.Project.Solution.OnSemanticModelObtained(this.Id, semanticModel);
352var compilation = await this.Project.GetRequiredCompilationAsync(cancellationToken).ConfigureAwait(false);
386=> this.Project.Solution.WithDocumentSourceCodeKind(this.Id, kind).GetRequiredDocument(Id);
392=> this.Project.Solution.WithDocumentText(this.Id, text, PreservationMode.PreserveIdentity).GetRequiredDocument(Id);
398=> this.Project.Solution.WithDocumentSyntaxRoot(this.Id, root, PreservationMode.PreserveIdentity).GetRequiredDocument(Id);
404=> this.Project.Solution.WithDocumentName(this.Id, name).GetRequiredDocument(Id);
410=> this.Project.Solution.WithDocumentFolders(this.Id, folders).GetRequiredDocument(Id);
416=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetRequiredDocument(Id);
505var filteredDocumentIds = this.Project.Solution.GetRelatedDocumentIds(this.Id);
535if (!forceFreeze && this.Project.TryGetCompilation(out _))
538var solution = this.Project.Solution;
545this.Project.SupportsCompilation)
547var newSolution = this.Project.Solution.WithFrozenPartialCompilationIncludingSpecificDocument(this.Id, cancellationToken);
574InitializeCachedOptions(Project.Solution.Options);
586return new DocumentOptionSet(options, arg.solutionOptions, arg.self.Project.Language);
596var provider = (ProjectState.ProjectHostAnalyzerConfigOptionsProvider)Project.State.HostAnalyzerOptions.AnalyzerConfigOptionsProvider;