mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Implement semantic tokens
This commit is contained in:
parent
7a65956195
commit
dfb09b9357
6 changed files with 65 additions and 5 deletions
|
@ -94,3 +94,14 @@ class Completion:
|
|||
"insertTextFormat": insert_text_format,
|
||||
}
|
||||
return { k: v for k, v in result.items() if v is not None }
|
||||
|
||||
|
||||
class SemanticTokenType(enum.IntEnum):
|
||||
EnumMember = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class SemanticToken:
|
||||
start: int
|
||||
end: int
|
||||
type: SemanticTokenType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue