package.json 8.8 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",
M
Matt Bierner 已提交
17
		"typescript": "2.1.5-insiders.20161220"
18
	},
19 20 21
	"devDependencies": {
		"@types/semver": "^5.3.30"
	},
E
Erich Gamma 已提交
22
	"scripts": {
D
Dirk Baeumer 已提交
23
		"postinstall": "node ./bin/postinstall",
24
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:typescript ./tsconfig.json",
25
		"update-grammars": "node ./build/update-grammars.js"
E
Erich Gamma 已提交
26 27
	},
	"activationEvents": [
D
Dirk Baeumer 已提交
28 29
		"onLanguage:javascript",
		"onLanguage:javascriptreact",
E
Erich Gamma 已提交
30
		"onLanguage:typescript",
D
Dirk Baeumer 已提交
31
		"onLanguage:typescriptreact",
32 33
		"onCommand:typescript.reloadProjects",
		"onCommand:javascript.reloadProjects"
E
Erich Gamma 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46
	],
	"main": "./out/typescriptMain",
	"contributes": {
		"languages": [
			{
				"id": "typescript",
				"aliases": [
					"TypeScript",
					"ts",
					"typescript"
				],
				"extensions": [
					".ts"
47 48
				],
				"configuration": "./language-configuration.json"
E
Erich Gamma 已提交
49 50 51 52 53 54 55 56 57
			},
			{
				"id": "typescriptreact",
				"aliases": [
					"TypeScript React",
					"tsx"
				],
				"extensions": [
					".tsx"
58 59
				],
				"configuration": "./language-configuration.json"
E
Erich Gamma 已提交
60 61 62 63 64 65
			}
		],
		"grammars": [
			{
				"language": "typescript",
				"scopeName": "source.ts",
66
				"path": "./syntaxes/TypeScript.tmLanguage.json"
E
Erich Gamma 已提交
67 68 69 70
			},
			{
				"language": "typescriptreact",
				"scopeName": "source.tsx",
71
				"path": "./syntaxes/TypeScriptReact.tmLanguage.json"
E
Erich Gamma 已提交
72 73 74 75
			}
		],
		"configuration": {
			"type": "object",
76
			"title": "%configuration.typescript%",
77
			"order": 20,
E
Erich Gamma 已提交
78 79
			"properties": {
				"typescript.tsdk": {
80 81 82 83
					"type": [
						"string",
						"null"
					],
E
Erich Gamma 已提交
84
					"default": null,
85
					"description": "%typescript.tsdk.desc%"
86
				},
87
				"typescript.disableAutomaticTypeAcquisition": {
D
Dirk Baeumer 已提交
88
					"type": "boolean",
89 90
					"default": false,
					"description": "%typescript.disableAutomaticTypeAcquisition%"
D
Dirk Baeumer 已提交
91
				},
92
				"typescript.check.workspaceVersion": {
D
Dirk Baeumer 已提交
93 94 95 96
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.workspaceVersion%"
				},
97
				"typescript.check.tscVersion": {
D
Dirk Baeumer 已提交
98 99 100 101
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.tscVersion%"
				},
102 103
				"typescript.tsserver.trace": {
					"type": "string",
104 105 106 107 108
					"enum": [
						"off",
						"messages",
						"verbose"
					],
109 110 111
					"default": "off",
					"description": "%typescript.tsserver.trace%"
				},
112 113 114 115 116
				"typescript.useCodeSnippetsOnMethodSuggest": {
					"type": "boolean",
					"default": false,
					"description": "%typescript.useCodeSnippetsOnMethodSuggest.dec%"
				},
117 118 119 120 121
				"typescript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%typescript.validate.enable%"
				},
122 123 124 125 126
				"typescript.format.enable": {
					"type": "boolean",
					"default": true,
					"description": "%typescript.format.enable%"
				},
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
				"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 已提交
154
					"default": false,
155 156 157 158
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
159
					"default": false,
160 161
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
162 163 164 165 166 167 168 169 170 171
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
172 173
				"typescript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
174
					"default": false,
175 176 177 178
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
179
					"default": false,
180 181
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
				},
182 183 184 185
				"javascript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%javascript.validate.enable%"
186
				},
187 188 189 190 191
				"javascript.format.enable": {
					"type": "boolean",
					"default": true,
					"description": "%javascript.format.enable%"
				},
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
				"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 已提交
219
					"default": false,
220 221 222 223
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
224
					"default": false,
225 226
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
227 228 229 230 231 232 233 234 235 236
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
237 238
				"javascript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
239
					"default": false,
240 241 242 243
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
244
					"default": false,
245
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
E
Erich Gamma 已提交
246 247 248 249 250 251 252 253
				}
			}
		},
		"keybindings": {
			"key": ".",
			"command": "^acceptSelectedSuggestion",
			"when": "editorTextFocus && suggestWidgetVisible && editorLangId == 'typescript' && suggestionSupportsAcceptOnKey"
		},
D
Dirk Baeumer 已提交
254 255 256
		"commands": [
			{
				"command": "typescript.reloadProjects",
257 258 259 260 261
				"title": "%typescript.reloadProjects.title%"
			},
			{
				"command": "javascript.reloadProjects",
				"title": "%javascript.reloadProjects.title%"
D
Dirk Baeumer 已提交
262 263
			}
		],
264
		"breakpoints": [
E
Erich Gamma 已提交
265
			{
266
				"language": "typescript"
E
Erich Gamma 已提交
267 268
			},
			{
269
				"language": "typescriptreact"
E
Erich Gamma 已提交
270 271 272 273 274 275 276 277 278 279 280
			}
		],
		"snippets": [
			{
				"language": "typescript",
				"path": "./snippets/typescript.json"
			},
			{
				"language": "typescriptreact",
				"path": "./snippets/typescriptreact.json"
			}
281 282 283 284 285
		],
		"jsonValidation": [
			{
				"fileMatch": "tsconfig.json",
				"url": "http://json.schemastore.org/tsconfig"
E
Erich Gamma 已提交
286 287 288 289
			},
			{
				"fileMatch": "tsconfig.json",
				"url": "./schemas/tsconfig.schema.json"
290 291 292 293
			},
			{
				"fileMatch": "typings.json",
				"url": "http://json.schemastore.org/typings"
294
			}
E
Erich Gamma 已提交
295 296 297
		]
	}
}