21 references to Document
Microsoft.CodeAnalysis.LanguageServer.Protocol (21)
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
23
var designTimeDocument =
Document
;
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (9)
17
public Solution Solution => this.
Document
.Project.Solution;
22
public ProjectOrDocumentId GetId() => new(
Document
.Id);
23
public Project GetProject() =>
Document
.Project;
26
=> !string.IsNullOrEmpty(
Document
.FilePath)
27
? new VSTextDocumentIdentifier { ProjectContext = ProtocolConversions.ProjectToProjectContext(
Document
.Project), DocumentUri =
Document
.GetURI() }
30
public string ToDisplayString() => $"{this.GetType().Name}: {
Document
.FilePath ??
Document
.Name} in {
Document
.Project.Name}";
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (6)
40
if (
Document
is SourceGeneratedDocument sourceGeneratedDocument)
60
return projectDiagnostics.WhereAsArray(d => d.DocumentId ==
Document
.Id);
66
if (!s_projectToDiagnostics.TryGetValue(
Document
.Project, out var lazyDiagnostics))
73
return [.. result[
Document
.Id]];
78
Document
.Project,
101
var diagnostics = codeAnalysisService.GetLastComputedDocumentDiagnostics(
Document
.Id);
Handler\Diagnostics\DiagnosticSources\DocumentDiagnosticSource.cs (2)
26
Document
, range: null, diagnosticKind: this.DiagnosticKind, cancellationToken).ConfigureAwait(false);
34
var copilotDiagnostics = await
Document
.GetCachedCopilotDiagnosticsAsync(span: null, cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\DiagnosticSources\NonLocalDocumentDiagnosticSource.cs (2)
27
Document
.Project, [
Document
.Id], diagnosticIds: null, analyzerFilter, includeLocalDocumentDiagnostics: false, cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (1)
33
=> GetTaskListItemsAsync(this.
Document
, _globalOptions, cancellationToken);