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:
parent
6865a8c144
commit
8c231e46a1
16
package.json
16
package.json
@ -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"
|
||||
]
|
||||
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user