package.json 9.1 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.1.5-insiders.20161229"
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 72 73 74 75
				"path": "./syntaxes/TypeScriptReact.tmLanguage.json",
				"embeddedLanguages": {
					"meta.tag.tsx": "jsx-tags",
					"meta.tag.without-attributes.tsx": "jsx-tags"
				}
E
Erich Gamma 已提交
76 77 78 79
			}
		],
		"configuration": {
			"type": "object",
80
			"title": "%configuration.typescript%",
81
			"order": 20,
E
Erich Gamma 已提交
82 83
			"properties": {
				"typescript.tsdk": {
84 85 86 87
					"type": [
						"string",
						"null"
					],
E
Erich Gamma 已提交
88
					"default": null,
89
					"description": "%typescript.tsdk.desc%"
90
				},
91
				"typescript.disableAutomaticTypeAcquisition": {
D
Dirk Baeumer 已提交
92
					"type": "boolean",
93 94
					"default": false,
					"description": "%typescript.disableAutomaticTypeAcquisition%"
D
Dirk Baeumer 已提交
95
				},
96
				"typescript.check.workspaceVersion": {
D
Dirk Baeumer 已提交
97 98 99 100
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.workspaceVersion%"
				},
101
				"typescript.check.tscVersion": {
D
Dirk Baeumer 已提交
102 103 104 105
					"type": "boolean",
					"default": true,
					"description": "%typescript.check.tscVersion%"
				},
106 107 108 109 110
				"typescript.referencesCodeLens.enabled": {
					"type": "boolean",
					"default": false,
					"description": "%typescript.referencesCodeLens.enabled%"
				},
111 112
				"typescript.tsserver.trace": {
					"type": "string",
113 114 115 116 117
					"enum": [
						"off",
						"messages",
						"verbose"
					],
118 119 120
					"default": "off",
					"description": "%typescript.tsserver.trace%"
				},
121 122 123 124 125
				"typescript.useCodeSnippetsOnMethodSuggest": {
					"type": "boolean",
					"default": false,
					"description": "%typescript.useCodeSnippetsOnMethodSuggest.dec%"
				},
126 127 128 129 130
				"typescript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%typescript.validate.enable%"
				},
131 132 133 134 135
				"typescript.format.enable": {
					"type": "boolean",
					"default": true,
					"description": "%typescript.format.enable%"
				},
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
				"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 已提交
163
					"default": false,
164 165 166 167
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
168
					"default": false,
169 170
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
171 172 173 174 175 176 177 178 179 180
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
181 182
				"typescript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
183
					"default": false,
184 185 186 187
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
188
					"default": false,
189 190
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
				},
191 192 193 194
				"javascript.validate.enable": {
					"type": "boolean",
					"default": true,
					"description": "%javascript.validate.enable%"
195
				},
196 197 198 199 200
				"javascript.format.enable": {
					"type": "boolean",
					"default": true,
					"description": "%javascript.format.enable%"
				},
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
				"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 已提交
228
					"default": false,
229 230 231 232
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
					"type": "boolean",
D
Dirk Baeumer 已提交
233
					"default": false,
234 235
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
				},
D
Dirk Baeumer 已提交
236 237 238 239 240 241 242 243 244 245
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%"
				},
				"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
					"type": "boolean",
					"default": false,
					"description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%"
				},
246 247
				"javascript.format.placeOpenBraceOnNewLineForFunctions": {
					"type": "boolean",
D
Dirk Baeumer 已提交
248
					"default": false,
249 250 251 252
					"description": "%format.placeOpenBraceOnNewLineForFunctions%"
				},
				"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
					"type": "boolean",
D
Dirk Baeumer 已提交
253
					"default": false,
254
					"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
E
Erich Gamma 已提交
255 256 257 258 259 260 261 262
				}
			}
		},
		"keybindings": {
			"key": ".",
			"command": "^acceptSelectedSuggestion",
			"when": "editorTextFocus && suggestWidgetVisible && editorLangId == 'typescript' && suggestionSupportsAcceptOnKey"
		},
D
Dirk Baeumer 已提交
263 264 265
		"commands": [
			{
				"command": "typescript.reloadProjects",
266 267 268 269 270
				"title": "%typescript.reloadProjects.title%"
			},
			{
				"command": "javascript.reloadProjects",
				"title": "%javascript.reloadProjects.title%"
D
Dirk Baeumer 已提交
271 272
			}
		],
273
		"breakpoints": [
E
Erich Gamma 已提交
274
			{
275
				"language": "typescript"
E
Erich Gamma 已提交
276 277
			},
			{
278
				"language": "typescriptreact"
E
Erich Gamma 已提交
279 280 281 282 283 284 285 286 287 288 289
			}
		],
		"snippets": [
			{
				"language": "typescript",
				"path": "./snippets/typescript.json"
			},
			{
				"language": "typescriptreact",
				"path": "./snippets/typescriptreact.json"
			}
290 291 292 293 294
		],
		"jsonValidation": [
			{
				"fileMatch": "tsconfig.json",
				"url": "http://json.schemastore.org/tsconfig"
E
Erich Gamma 已提交
295 296 297 298
			},
			{
				"fileMatch": "tsconfig.json",
				"url": "./schemas/tsconfig.schema.json"
299 300 301 302
			},
			{
				"fileMatch": "typings.json",
				"url": "http://json.schemastore.org/typings"
303
			}
E
Erich Gamma 已提交
304 305 306
		]
	}
}