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