1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-09-11 07:15:31 +03:00

add HEAD semantic token types

This commit is contained in:
Evan Johnson 2023-09-09 23:06:09 -06:00
parent 6865a8c144
commit 8c231e46a1
2 changed files with 19 additions and 1 deletions

View File

@ -453,6 +453,16 @@
"superType": "label",
"description": "Name of a git ref from a remote."
},
{
"id": "magit-head-name",
"superType": "label",
"description": "Name of the (local) HEAD git ref."
},
{
"id": "magit-remote-head-name",
"superType": "label",
"description": "Name of a HEAD git ref on a remote repo."
},
{
"id": "magit-tag-name",
"superType": "label",
@ -468,6 +478,12 @@
"magit-remote-ref-name": [
"variable.other.constant"
],
"magit-head-name": [
"entity.name.tag"
],
"magit-remote-head-name": [
"variable.object.property"
],
"magit-tag-name": [
"string.highlight"
]

View File

@ -14,5 +14,7 @@ export const MagitDocumentSelector: DocumentSelector = { scheme: MagitUriScheme,
export enum SemanticTokenTypes {
RefName = 'magit-ref-name',
RemoteRefName = 'magit-remote-ref-name',
HeadName = 'magit-head-name',
RemoteHeadName = 'magit-remote-head-name',
TagName = 'magit-tag-name',
}
}