mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
language specific scopes
This commit is contained in:
@@ -90,6 +90,30 @@
|
||||
"path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
|
||||
}
|
||||
],
|
||||
"semanticTokenScopes": [
|
||||
{
|
||||
"language": "javascript",
|
||||
"scopes": {
|
||||
"property": ["variable.other.property.js"],
|
||||
"property.readonly": ["variable.other.constant.property.js"],
|
||||
"variable": ["variable.other.readwrite.js"],
|
||||
"variable.readonly": ["variable.other.constant.object.js"],
|
||||
"function": ["entity.name.function.js"],
|
||||
"namespace": ["entity.name.type.module.js"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"language": "javascriptreact",
|
||||
"scopes": {
|
||||
"property": ["variable.other.property.jsx"],
|
||||
"property.readonly": ["variable.other.constant.property.jsx"],
|
||||
"variable": ["variable.other.readwrite.jsx"],
|
||||
"variable.readonly": ["variable.other.constant.object.jsx"],
|
||||
"function": ["entity.name.function.jsx"],
|
||||
"namespace": ["entity.name.type.module.jsx"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "javascript",
|
||||
|
||||
Reference in New Issue
Block a user