31 references to Solution
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Cohost\RazorCohostRequestContext.cs (1)
17/// <inheritdoc cref="RequestContext.Solution"/>
Microsoft.CodeAnalysis.LanguageServer.Protocol (30)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
41var project = context.Solution?.GetProject(request.Project);
Handler\CodeActions\CodeActionResolveHelper.cs (1)
25var solution = context.Solution;
Handler\Completion\CompletionHandler.cs (1)
51Contract.ThrowIfNull(context.Solution);
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
119Contract.ThrowIfNull(context.Solution); 138await ProcessPreviousResultsAsync(context.Solution, previousResults, documentIdToPreviousDiagnosticParams, removedDocuments, cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\BuildOnlyDiagnosticIdsHandler.cs (4)
42Contract.ThrowIfNull(context.Solution); 45foreach (var languageName in context.Solution.Projects.Select(p => p.Language).Distinct()) 55foreach (var project in context.Solution.Projects) 57var analyzersPerReferenceMap = context.Solution.SolutionState.Analyzers.CreateDiagnosticAnalyzersPerReference(project);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (2)
54Contract.ThrowIfNull(context.Solution); 58var solution = context.Solution;
Handler\EditAndContinue\RegisterSolutionSnapshotHandler.cs (2)
36Contract.ThrowIfNull(context.Solution); 37var id = _registry.RegisterSolutionSnapshot(context.Solution);
Handler\EditAndContinue\WorkspaceEditAndContinueDiagnosticSourceProvider.cs (2)
29Contract.ThrowIfNull(context.Solution); 30return EditAndContinueDiagnosticSource.CreateWorkspaceDiagnosticSourcesAsync(context.Solution!, document => context.IsTracking(document.GetURI()), cancellationToken);
Handler\MapCode\MapCodeHandler.cs (2)
37Contract.ThrowIfNull(context.Solution); 85var document = await context.Solution.GetDocumentAsync(textDocument, cancellationToken).ConfigureAwait(false);
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (3)
36Contract.ThrowIfNull(context.Solution); 40var documentIds = context.Solution.GetDocumentIds(request.TextDocument.Uri); 51var project = context.Solution.GetRequiredProject(documentId.ProjectId);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (4)
140Contract.ThrowIfNull(context.Solution); 147var document = await context.Solution.GetDocumentAsync(requestParams.TextDocument, cancellationToken).ConfigureAwait(false); 207Contract.ThrowIfNull(context.Solution); 214var document = await context.Solution.GetTextDocumentAsync(textDocument, cancellationToken).ConfigureAwait(false);
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (2)
33Contract.ThrowIfNull(context.Solution); 37var solution = context.Solution;
Handler\Symbols\WorkspaceSymbolsHandler.cs (2)
52Contract.ThrowIfNull(context.Solution); 54var solution = context.Solution;
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (2)
31Contract.ThrowIfNull(context.Solution); 37foreach (var project in WorkspaceDiagnosticSourceHelpers.GetProjectsInPriorityOrder(context.Solution, context.SupportedLanguages))