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