Table of Contents

Class RubberduckIndenterSettingsApplyParams

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.Protocol.dll

Request rdcore/formatting/indenterSettings/apply (RubberduckIndenterSettingsApply): asks the client to take the indenter settings it read as its own settings. The client answers a RubberduckIndenterSettingsApplyResult.

public record RubberduckIndenterSettingsApplyParams : IEquatable<RubberduckIndenterSettingsApplyParams>
Inheritance
RubberduckIndenterSettingsApplyParams
Implements
Derived
Inherited Members

Remarks

A client owns its configuration, and the language server writes none of it: this asks the client to set the Formatting settings the language server mapped from what the client read, as a change of its own - the shell writes them to the user's settings. The client announces the change as it does any other (workspace/didChangeConfiguration), and the language server sees the settings in the section it pulls. A client may decline, answering that it applied none.

Sent only after RubberduckIndenterSettingsParams was answered with settings, to a client that expects RubberduckIndenterSettings.

Properties

Settings

The settings, by their keys under Configuration, with the value as it is written: "Formatting.IndentSpaces": "2", "Formatting.IndentCase": "True".

public Dictionary<string, string> Settings { get; init; }

Property Value

Dictionary<string, string>

Source

Where the settings were read.

public RubberduckIndenterSettingsSource Source { get; init; }

Property Value

RubberduckIndenterSettingsSource