OpenModelica / modelica-language-server

A VS Code language server extension for Modelica.
Other
5 stars 2 forks source link

Implement Semantic Tokens #12

Open AnHeuermann opened 7 months ago

AnHeuermann commented 7 months ago

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

Example

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

grafik

Same for self defined types and classes.