Skip to content

Implement Semantic Tokens #12

@AnHeuermann

Description

@AnHeuermann

Description

Semantic Tokens

The request is sent from the client to the server to resolve semantic tokens for a given file. Semantic tokens are used to add additional color information to a file that depends on language specific symbol information. A semantic token request usually produces a large result. The protocol therefore supports encoding tokens with numbers. In addition optional support for deltas is available.

Desired features

  • Provide tokes
    • End identifiers of classes, like in model M end M; the second M needs a sematic token.
    • Class definitions like models, classes, types.
  • Server tests
  • Client end to end tests
    • Test combination with MetaModelica extension?

Example

This should fix the highlighting issue of the MetaModelica extension like for M and MyLibrary:

grafik

Same for self defined types and classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LS - ClientLanguage Server - Client capabilityLS - ServerLanguage Server - Server capabilityenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions