mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Split out ts syntax and grammar to ts basics
This commit is contained in:
60
extensions/typescript-basics/package.json
Normal file
60
extensions/typescript-basics/package.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "typescript-basics",
|
||||
"description": "%description%",
|
||||
"displayName": "%displayName%",
|
||||
"version": "0.10.1",
|
||||
"author": "vscode",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ./build/update-grammars.js"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "typescript",
|
||||
"aliases": [
|
||||
"TypeScript",
|
||||
"ts",
|
||||
"typescript"
|
||||
],
|
||||
"extensions": [
|
||||
".ts"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "typescriptreact",
|
||||
"aliases": [
|
||||
"TypeScript React",
|
||||
"tsx"
|
||||
],
|
||||
"extensions": [
|
||||
".tsx"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "typescript",
|
||||
"scopeName": "source.ts",
|
||||
"path": "./syntaxes/TypeScript.tmLanguage.json"
|
||||
},
|
||||
{
|
||||
"language": "typescriptreact",
|
||||
"scopeName": "source.tsx",
|
||||
"path": "./syntaxes/TypeScriptReact.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.tag.tsx": "jsx-tags",
|
||||
"meta.tag.without-attributes.tsx": "jsx-tags",
|
||||
"meta.tag.attributes.tsx": "typescriptreact",
|
||||
"meta.embedded.expression.tsx": "typescriptreact"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user