Class DocumentDiagnosticPullParams
textDocument/diagnostic (LSP 3.17 §Document Diagnostics), as a client of the platform sends it: the request an editor pulls the
diagnostics of a document with, whose report is read as a DocumentDiagnosticPullReport.
[Method("textDocument/diagnostic", Direction.ClientToServer)]
public sealed record DocumentDiagnosticPullParams : IRequest, IRequest<Unit>, IRequest<DocumentDiagnosticPullReport?>, IBaseRequest, IEquatable<DocumentDiagnosticPullParams>
- Inheritance
-
DocumentDiagnosticPullParams
- Implements
-
IRequestIRequest<Unit>IRequest<DocumentDiagnosticPullReport>IBaseRequest
- Inherited Members
Remarks
OmniSharp 0.19.9 writes a RelatedDocumentDiagnosticReport and does not read one: its converter throws NotImplementedException, so a client that sends DocumentDiagnosticParams gets an exception for an answer. This is the same request, whose answer is read as the record it is.
Properties
PreviousResultId
The identifier of the last report the client has, which the server answers is unchanged when it is; null for none.
[JsonProperty("previousResultId", NullValueHandling = NullValueHandling.Ignore)]
public string? PreviousResultId { get; init; }
Property Value
TextDocument
The document whose diagnostics are pulled.
[JsonProperty("textDocument")]
public TextDocumentIdentifier TextDocument { get; init; }