Skip to content

Commit e23c58b

Browse files
committed
Split out ts syntax and grammar to ts basics
1 parent ac5ed16 commit e23c58b

39 files changed

Lines changed: 111 additions & 45 deletions

build/npm/postinstall.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const extensions = [
3030
'extension-editing',
3131
'markdown',
3232
'typescript',
33+
'typescript-basics',
3334
'php',
3435
'javascript',
3536
'css',
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/**
2+
src/**
3+
test/**
4+
tsconfig.json
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[{
2+
"name": "TypeScript-TmLanguage",
3+
"version": "0.1.8",
4+
"license": "MIT",
5+
"repositoryURL": "https://github.com/Microsoft/TypeScript-TmLanguage",
6+
"description": "The files syntaxes/TypeScript.tmLanguage.json and syntaxes/TypeScriptReact.tmLanguage.json were derived from TypeScript.tmLanguage and TypeScriptReact.tmLanguage in https://github.com/Microsoft/TypeScript-TmLanguage."
7+
}]
File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [ "/*", "*/" ]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
19+
],
20+
"surroundingPairs": [
21+
["{", "}"],
22+
["[", "]"],
23+
["(", ")"],
24+
["'", "'"],
25+
["\"", "\""],
26+
["`", "`"]
27+
],
28+
"folding": {
29+
"markers": {
30+
"start": "^\\s*//\\s*#?region\\b",
31+
"end": "^\\s*//\\s*#?endregion\\b"
32+
}
33+
}
34+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "typescript-basics",
3+
"description": "%description%",
4+
"displayName": "%displayName%",
5+
"version": "0.10.1",
6+
"author": "vscode",
7+
"publisher": "vscode",
8+
"license": "MIT",
9+
"engines": {
10+
"vscode": "*"
11+
},
12+
"scripts": {
13+
"update-grammar": "node ./build/update-grammars.js"
14+
},
15+
"contributes": {
16+
"languages": [
17+
{
18+
"id": "typescript",
19+
"aliases": [
20+
"TypeScript",
21+
"ts",
22+
"typescript"
23+
],
24+
"extensions": [
25+
".ts"
26+
],
27+
"configuration": "./language-configuration.json"
28+
},
29+
{
30+
"id": "typescriptreact",
31+
"aliases": [
32+
"TypeScript React",
33+
"tsx"
34+
],
35+
"extensions": [
36+
".tsx"
37+
],
38+
"configuration": "./language-configuration.json"
39+
}
40+
],
41+
"grammars": [
42+
{
43+
"language": "typescript",
44+
"scopeName": "source.ts",
45+
"path": "./syntaxes/TypeScript.tmLanguage.json"
46+
},
47+
{
48+
"language": "typescriptreact",
49+
"scopeName": "source.tsx",
50+
"path": "./syntaxes/TypeScriptReact.tmLanguage.json",
51+
"embeddedLanguages": {
52+
"meta.tag.tsx": "jsx-tags",
53+
"meta.tag.without-attributes.tsx": "jsx-tags",
54+
"meta.tag.attributes.tsx": "typescriptreact",
55+
"meta.embedded.expression.tsx": "typescriptreact"
56+
}
57+
}
58+
]
59+
}
60+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"displayName": "TypeScript Language Basics",
3+
"description": "Provides syntax highlighting and basic language support for TypeScript."
4+
}

extensions/typescript/schemas/tsconfig.schema.json renamed to extensions/typescript-basics/schemas/tsconfig.schema.json

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)