Skip to content

Replace mutable modifier with readonly #2528

@sagg0t

Description

@sagg0t

ZLS 0.15 added non-standard mutable modifier for variables which is a great feature.
However for better integration with various tools it's better to use the standard readonly modifier on constants.
It will allow for the same results (logic is just inverted) and will be standard compatible.

Ref: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens

I'd be happy to work on it if the issue gets a green light.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions