Class ListSettingValueParams
Request rdcore/settings/listValue (ListSettingValue): asks the client to add an item to the list of a setting,
or to remove one from it, in the user's settings of the platform or in the settings of a workspace. The client answers a
ListSettingValueResult.
public record ListSettingValueParams : IEquatable<ListSettingValueParams>
- Inheritance
-
ListSettingValueParams
- Implements
- Derived
- Inherited Members
Remarks
A client owns its configuration, and the language server writes none of it: this asks the client to make the change as one of its own. The code action that
disables a diagnostic, and the one that allows a name a diagnostic is about, send it. The client announces the change as it does any other
(workspace/didChangeConfiguration), and the language server sees the setting in the section it pulls.
Sent only to a client that expects ListSettingValue. A client may decline, answering that it did not apply it.
Properties
Document
The document the change was asked for from (the one a diagnostic is in), whose workspace a Workspace list is of; null for the client's workspace.
public Uri? Document { get; init; }
Property Value
Key
The key of the setting, under Configuration: Analysis.DisabledDiagnostics.
public string Key { get; init; }
Property Value
Remove
Whether the item is removed from the list; otherwise, it is added.
public bool Remove { get; init; }
Property Value
Scope
Where the list is kept.
public SettingScope Scope { get; init; }
Property Value
Value
The item, as it is written: RDC01001.
public string Value { get; init; }