LspClientCapabilities class

Defines the capabilities of the LSP (Language Server Protocol) client.

This class controls which LSP features are enabled or disabled during the language server initialization. Each boolean flag corresponds to a specific LSP feature. By default, all features are enabled.

These capabilities are sent to the language server during initialization, ensuring the server only advertises features that the client supports.

Constructors

LspClientCapabilities({bool semanticHighlighting = true, bool codeCompletion = true, bool hoverInfo = true, bool codeAction = true, bool signatureHelp = true, bool documentColor = true, bool documentHighlight = true, bool codeFolding = true, bool inlayHint = true, bool goToDefinition = true, bool rename = true})
Creates a new LspClientCapabilities instance with customizable feature flags.
const

Properties

codeAction bool
Whether code actions are enabled.
final
codeCompletion bool
Whether code completion is enabled.
final
codeFolding bool
Whether code folding is enabled.
final
documentColor bool
Whether document color information is enabled.
final
documentHighlight bool
Whether document highlight is enabled.
final
goToDefinition bool
Whether "go to definition" is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
hoverInfo bool
Whether hover information is enabled.
final
inlayHint bool
Whether inlay hints are enabled.
final
rename bool
Whether symbol renaming is enabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticHighlighting bool
Whether semantic token highlighting is enabled.
final
signatureHelp bool
Whether signature help is enabled.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited