package.json 8.4 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5 6 7 8
{
	"name": "typescript",
	"description": "Extension to add Typescript capabilities to VSCode.",
	"displayName": "TypeScript support for VSCode",
	"version": "0.10.1",
	"author": "Microsoft Corporation",
	"license": "MIT",
	"publisher": "vscode",
9
	"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
E
Erich Gamma 已提交
10 11 12
	"engines": {
		"vscode": "*"
	},
13
	"dependencies": {
D
Dirk Baeumer 已提交
14
		"semver": "4.3.6",
15
		"vscode-extension-telemetry": "^0.0.5",
D
Dirk Baeumer 已提交
16
		"vscode-nls": "^2.0.1",
17
		"typescript": "^2.0.6-insiders.20161014"
18
	},
E
Erich Gamma 已提交
19
	"scripts": {
D
Dirk Baeumer 已提交
20
		"postinstall": "node ./bin/postinstall",
21
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:typescript ./tsconfig.json",
22
		"update-grammars": "node ./build/update-grammars.js"
E
Erich Gamma 已提交
23 24
	},
	"activationEvents": [
D
Dirk Baeumer 已提交
25 26
		"onLanguage:javascript",
		"onLanguage:javascriptreact",
E
Erich Gamma 已提交
27
		"onLanguage:typescript",
D
Dirk Baeumer 已提交
28
		"onLanguage:typescriptreact",
29 30
		"onCommand:typescript.reloadProjects",
		"onCommand:javascript.reloadProjects"
E
Erich Gamma 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43
	],
	"main": "./out/typescriptMain",
	"contributes": {
		"languages": [
			{
				"id": "typescript",
				"aliases": [
					"TypeScript",
					"ts",
					"typescript"
				],
				"extensions": [
					".ts"
44 45
				],
				"configuration": "./language-configuration.json"
E
Erich Gamma 已提交
46 47 48 49 50 51 52 53 54
			},
			{
				"id": "typescriptreact",
				"aliases": [
					"TypeScript React",
					"tsx"
				],
				"extensions": [
					".tsx"
55 56
				],
				"configuration": "./language-configuration.json"
E
Erich Gamma 已提交
57 58 59 60 61 62
			}
		],
		"grammars": [
			{
				"language": "typescript",
				"scopeName": "source.ts",
63
				"path": "./syntaxes/TypeScript.tmLanguage.json"
E
Erich Gamma 已提交
64 65 66 67
			},
			{
				"language": "typescriptreact",
				"scopeName": "source.tsx",
68
				"path": "./syntaxes/TypeScriptReact.tmLanguage.json"
E
Erich Gamma 已提交
69 70 71 72
			}
		],
		"configuration": {
			"type": "object",
73
			"title": "%configuration.typescript%",
74
			"order": 20,
E
Erich Gamma 已提交
75 76
			"properties": {
				"typescript.tsdk": {
77
					"type": ["string", "null"],
E
Erich Gamma 已提交
78
					"default": null,
79
					"description": "%typescript.tsdk.desc%"
80
				},
D
Dirk Baeumer 已提交
81 82 83
				"typescript.experimentalAutomaticTypeAcquisition": {
					"type": "boolean",
					"default": false,
D
Dirk Baeumer 已提交
84
					"description": "%typescript.experimentalAutomaticTypeAcquisition%"
D
Dirk Baeumer 已提交
85
				},
D
Dirk Baeumer 已提交
86 87 88 89 90 91 92 93 94 95
				"typescript.check.workspaceVersion" :{
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.workspaceVersion%"
				},
				"typescript.check.tscVersion" :{
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.tscVersion%"
				},
96 97 98 99 100 101
				"typescript.tsserver.trace": {
					"type": "string",
					"enum": ["off", "messages", "verbose"],
					"default": "off",
					"description": "%typescript.tsserver.trace%"
				},
102 103 104 105 106
				"typescript.useCodeSnippetsOnMethodSuggest": {
					"type": "boolean",
					"default": false,
					"description": "%typescript.useCodeSnippetsOnMethodSuggest.dec%"
				},
107 108 109 110 111
				"typescript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%typescript.validate.enable%"
				},
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
				"typescript.format.insertSpaceAfterCommaDelimiter": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterCommaDelimiter%"
				},
				"typescript.format.insertSpaceAfterSemicolonInForStatements": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterSemicolonInForStatements%"
				},
				"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceBeforeAndAfterBinaryOperators%"
				},
				"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%"
				},
				"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
					"type": "boolean",
D
Dirk Baeumer 已提交
139
					"default": false,
140 141 142 143
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
144
					"default": false,
145 146
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
147 148 149 150 151 152 153 154 155 156
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
157 158
				"typescript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
159
					"default": false,
160 161 162 163
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
164
					"default": false,
165 166
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
				},
167 168 169 170
				"javascript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%javascript.validate.enable%"
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
				},
				"javascript.format.insertSpaceAfterCommaDelimiter": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterCommaDelimiter%"
				},
				"javascript.format.insertSpaceAfterSemicolonInForStatements": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterSemicolonInForStatements%"
				},
				"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceBeforeAndAfterBinaryOperators%"
				},
				"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%"
				},
				"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
					"type": "boolean",
					"default": true,
					"description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
					"type": "boolean",
D
Dirk Baeumer 已提交
199
					"default": false,
200 201 202 203
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
204
					"default": false,
205 206
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
207 208 209 210 211 212 213 214 215 216
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
217 218
				"javascript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
219
					"default": false,
220 221 222 223
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
224
					"default": false,
225
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
E
Erich Gamma 已提交
226 227 228 229 230 231 232 233
				}
			}
		},
		"keybindings": {
			"key": ".",
			"command": "^acceptSelectedSuggestion",
			"when": "editorTextFocus && suggestWidgetVisible && editorLangId == 'typescript' && suggestionSupportsAcceptOnKey"
		},
D
Dirk Baeumer 已提交
234 235 236
		"commands": [
			{
				"command": "typescript.reloadProjects",
237 238 239 240 241
				"title": "%typescript.reloadProjects.title%"
			},
			{
				"command": "javascript.reloadProjects",
				"title": "%javascript.reloadProjects.title%"
D
Dirk Baeumer 已提交
242 243
			}
		],
244
		"breakpoints": [
E
Erich Gamma 已提交
245
			{
246
				"language": "typescript"
E
Erich Gamma 已提交
247 248
			},
			{
249
				"language": "typescriptreact"
E
Erich Gamma 已提交
250 251 252 253 254 255 256 257 258 259 260
			}
		],
		"snippets": [
			{
				"language": "typescript",
				"path": "./snippets/typescript.json"
			},
			{
				"language": "typescriptreact",
				"path": "./snippets/typescriptreact.json"
			}
261 262 263 264 265
		],
		"jsonValidation": [
			{
				"fileMatch": "tsconfig.json",
				"url": "http://json.schemastore.org/tsconfig"
E
Erich Gamma 已提交
266 267 268 269
			},
			{
				"fileMatch": "tsconfig.json",
				"url": "./schemas/tsconfig.schema.json"
270
			}
E
Erich Gamma 已提交
271 272 273
		]
	}
}