SemanticTokensDelta

class SemanticTokensDelta

LSP compatible SemanticTokensDelta structure.

See LSP Specification for more details.

Members defined in SemanticTokensDelta (3 members)

edits

R

The semantic token edits to transform a previous result into a new result.

result_id

RW

An optional result id.

__init__

Attributes

property edits: syside.ContainerView[syside.ide.lsp.SemanticTokensEdit]

The semantic token edits to transform a previous result into a new result.

property result_id: str | None

An optional result id.

If provided and clients support delta updating the client will include the result id in the next semantic token request. A server can then instead of computing all semantic tokens again simply send a delta.

Methods

__init__(result_id: str | None = None, edits: Sequence[syside.ide.lsp.SemanticTokensEdit] = []) None
Used in