2021-01-25 16:07:56 +00:00
|
|
|
{
|
|
|
|
"name": "typescript",
|
|
|
|
"description": "%description%",
|
|
|
|
"displayName": "%displayName%",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"author": "vscode",
|
|
|
|
"publisher": "vscode",
|
|
|
|
"license": "MIT",
|
|
|
|
"engines": {
|
|
|
|
"vscode": "*"
|
|
|
|
},
|
|
|
|
"scripts": {
|
2022-03-01 23:56:27 +00:00
|
|
|
"update-grammar": "node ./build/update-grammars.mjs"
|
2021-01-25 16:07:56 +00:00
|
|
|
},
|
|
|
|
"contributes": {
|
|
|
|
"languages": [
|
|
|
|
{
|
|
|
|
"id": "typescript",
|
|
|
|
"aliases": [
|
|
|
|
"TypeScript",
|
|
|
|
"ts",
|
|
|
|
"typescript"
|
|
|
|
],
|
|
|
|
"extensions": [
|
2021-10-06 21:33:25 +00:00
|
|
|
".ts",
|
|
|
|
".cts",
|
|
|
|
".mts"
|
2021-01-25 16:07:56 +00:00
|
|
|
],
|
|
|
|
"configuration": "./language-configuration.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "typescriptreact",
|
|
|
|
"aliases": [
|
|
|
|
"TypeScript React",
|
|
|
|
"tsx"
|
|
|
|
],
|
|
|
|
"extensions": [
|
|
|
|
".tsx"
|
|
|
|
],
|
|
|
|
"configuration": "./language-configuration.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "jsonc",
|
|
|
|
"filenames": [
|
|
|
|
"tsconfig.json",
|
|
|
|
"jsconfig.json"
|
|
|
|
],
|
|
|
|
"filenamePatterns": [
|
|
|
|
"tsconfig.*.json",
|
|
|
|
"jsconfig.*.json",
|
|
|
|
"tsconfig-*.json",
|
|
|
|
"jsconfig-*.json"
|
|
|
|
]
|
2022-05-10 15:59:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "json",
|
|
|
|
"filenames": [
|
|
|
|
"tsconfig.tsbuildinfo"
|
|
|
|
]
|
2021-01-25 16:07:56 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"grammars": [
|
|
|
|
{
|
|
|
|
"language": "typescript",
|
|
|
|
"scopeName": "source.ts",
|
|
|
|
"path": "./syntaxes/TypeScript.tmLanguage.json",
|
|
|
|
"tokenTypes": {
|
2021-08-06 00:08:20 +00:00
|
|
|
"meta.template.expression": "other",
|
2021-10-28 15:46:56 +00:00
|
|
|
"meta.template.expression string": "string",
|
|
|
|
"meta.template.expression comment": "comment",
|
2021-01-25 16:07:56 +00:00
|
|
|
"entity.name.type.instance.jsdoc": "other",
|
|
|
|
"entity.name.function.tagged-template": "other",
|
|
|
|
"meta.import string.quoted": "other",
|
|
|
|
"variable.other.jsdoc": "other"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"tokenTypes": {
|
2021-08-06 00:08:20 +00:00
|
|
|
"meta.template.expression": "other",
|
2021-10-28 15:46:56 +00:00
|
|
|
"meta.template.expression string": "string",
|
|
|
|
"meta.template.expression comment": "comment",
|
2021-01-25 16:07:56 +00:00
|
|
|
"entity.name.type.instance.jsdoc": "other",
|
|
|
|
"entity.name.function.tagged-template": "other",
|
|
|
|
"meta.import string.quoted": "other",
|
|
|
|
"variable.other.jsdoc": "other"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scopeName": "documentation.injection.ts",
|
|
|
|
"path": "./syntaxes/jsdoc.ts.injection.tmLanguage.json",
|
|
|
|
"injectTo": [
|
|
|
|
"source.ts",
|
|
|
|
"source.tsx"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scopeName": "documentation.injection.js.jsx",
|
|
|
|
"path": "./syntaxes/jsdoc.js.injection.tmLanguage.json",
|
|
|
|
"injectTo": [
|
|
|
|
"source.js",
|
|
|
|
"source.js.jsx"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"semanticTokenScopes": [
|
|
|
|
{
|
|
|
|
"language": "typescript",
|
|
|
|
"scopes": {
|
|
|
|
"property": [
|
|
|
|
"variable.other.property.ts"
|
|
|
|
],
|
|
|
|
"property.readonly": [
|
|
|
|
"variable.other.constant.property.ts"
|
|
|
|
],
|
|
|
|
"variable": [
|
|
|
|
"variable.other.readwrite.ts"
|
|
|
|
],
|
|
|
|
"variable.readonly": [
|
|
|
|
"variable.other.constant.object.ts"
|
|
|
|
],
|
|
|
|
"function": [
|
|
|
|
"entity.name.function.ts"
|
|
|
|
],
|
|
|
|
"namespace": [
|
|
|
|
"entity.name.type.module.ts"
|
|
|
|
],
|
|
|
|
"variable.defaultLibrary": [
|
|
|
|
"support.variable.ts"
|
|
|
|
],
|
|
|
|
"function.defaultLibrary": [
|
|
|
|
"support.function.ts"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"language": "typescriptreact",
|
|
|
|
"scopes": {
|
|
|
|
"property": [
|
|
|
|
"variable.other.property.tsx"
|
|
|
|
],
|
|
|
|
"property.readonly": [
|
|
|
|
"variable.other.constant.property.tsx"
|
|
|
|
],
|
|
|
|
"variable": [
|
|
|
|
"variable.other.readwrite.tsx"
|
|
|
|
],
|
|
|
|
"variable.readonly": [
|
|
|
|
"variable.other.constant.object.tsx"
|
|
|
|
],
|
|
|
|
"function": [
|
|
|
|
"entity.name.function.tsx"
|
|
|
|
],
|
|
|
|
"namespace": [
|
|
|
|
"entity.name.type.module.tsx"
|
|
|
|
],
|
|
|
|
"variable.defaultLibrary": [
|
|
|
|
"support.variable.tsx"
|
|
|
|
],
|
|
|
|
"function.defaultLibrary": [
|
|
|
|
"support.function.tsx"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"snippets": [
|
|
|
|
{
|
|
|
|
"language": "typescript",
|
|
|
|
"path": "./snippets/typescript.code-snippets"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"language": "typescriptreact",
|
|
|
|
"path": "./snippets/typescript.code-snippets"
|
|
|
|
}
|
|
|
|
]
|
2021-01-29 14:30:45 +00:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/microsoft/vscode.git"
|
2021-01-25 16:07:56 +00:00
|
|
|
}
|
|
|
|
}
|