Class EditFix
- Namespace
- RDCore.SDK.Extensibility.Diagnostics
- Assembly
- RDCore.SDK.dll
Edits of the document a finding is in, which fix it: what the code action that makes them is called, and the edits, of the version of the document the finding was made of.
public sealed record EditFix : IEquatable<EditFix>
- Inheritance
-
EditFix
- Implements
- Inherited Members
Properties
ChangesBehavior
Whether the edits change what the code does, as a fix that passes a parameter ByRef or that qualifies a member with Me does. Such a fix
is never one a client may apply without showing it (LSP 3.17 CodeAction.isPreferred): not in a fix of a whole document, and
not on save.
[JsonProperty("changesBehavior", DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool ChangesBehavior { get; init; }
Property Value
Edits
The edits, none of them overlapping another, as LSP 3.17 TextEdits of the document.
[JsonProperty("edits")]
public IReadOnlyList<TextEdit> Edits { get; init; }
Property Value
Title
What the code action that makes the edits is called, in the language of the analyzer's messages. The title of a fix that changes what the code does says what changes.
[JsonProperty("title")]
public string Title { get; init; }
Property Value
Version
The version of the document the edits are edits of (LSP 3.17 VersionedTextDocumentIdentifier.version): the version the finding
was made of (SourceVersion); null when it is not known. The edits are sent with the version, and
a client applies them to that version of the document only; a fix whose version is not known, or is not the document's, is not offered.
[JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
public int? Version { get; init; }
Property Value
- int?