package.json 19.4 KB
Newer Older
E
Erich Gamma 已提交
1
{
2
  "name": "typescript-language-features",
3 4
  "description": "%description%",
  "displayName": "%displayName%",
M
Matt Bierner 已提交
5
  "version": "1.0.0",
M
Matt Bierner 已提交
6
  "icon": "icon.png",
7
  "author": "vscode",
8
  "publisher": "vscode",
9
  "license": "MIT",
10
  "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
11
  "enableProposedApi": true,
12 13 14
  "engines": {
    "vscode": "*"
  },
15 16 17
	"categories": [
		"Programming Languages"
	],
18 19
  "dependencies": {
    "semver": "4.3.6",
20
    "vscode-extension-telemetry": "0.0.16",
21
    "vscode-nls": "^3.2.1"
22 23
  },
  "devDependencies": {
24 25
    "@types/node": "8.0.33",
    "@types/semver": "5.4.0"
26 27
  },
  "scripts": {
28
    "vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:typescript ./tsconfig.json"
29 30 31 32 33 34 35 36 37
  },
  "activationEvents": [
    "onLanguage:javascript",
    "onLanguage:javascriptreact",
    "onLanguage:typescript",
    "onLanguage:typescriptreact",
    "onLanguage:jsx-tags",
    "onCommand:typescript.reloadProjects",
    "onCommand:javascript.reloadProjects",
38 39
    "onCommand:typescript.selectTypeScriptVersion",
    "onCommand:javascript.goToProjectConfig",
40
    "onCommand:typescript.goToProjectConfig",
M
Matt Bierner 已提交
41
    "onCommand:typescript.openTsServerLog",
42
    "onCommand:workbench.action.tasks.runTask"
43
  ],
44
  "main": "./out/extension",
45 46 47 48 49 50 51 52 53 54 55 56
  "contributes": {
    "configuration": {
      "type": "object",
      "title": "%configuration.typescript%",
      "order": 20,
      "properties": {
        "typescript.tsdk": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
57 58
          "description": "%typescript.tsdk.desc%",
          "scope": "window"
59 60 61 62
        },
        "typescript.disableAutomaticTypeAcquisition": {
          "type": "boolean",
          "default": false,
63 64
          "description": "%typescript.disableAutomaticTypeAcquisition%",
          "scope": "window"
65
        },
M
Matt Bierner 已提交
66 67 68 69 70 71
        "typescript.npm": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
72
          "description": "%typescript.npm%",
S
Sandeep Somavarapu 已提交
73
          "scope": "application"
M
Matt Bierner 已提交
74
        },
75
        "typescript.check.npmIsInstalled": {
J
Johannes Rieken 已提交
76 77
          "type": "boolean",
          "default": true,
78 79
          "description": "%typescript.check.npmIsInstalled%",
          "scope": "window"
J
Johannes Rieken 已提交
80
        },
81
        "javascript.referencesCodeLens.enabled": {
82 83
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
84 85
          "description": "%javascript.referencesCodeLens.enabled%",
          "scope": "window"
86 87 88
        },
        "typescript.referencesCodeLens.enabled": {
          "type": "boolean",
M
Matt Bierner 已提交
89
          "default": false,
M
Matt Bierner 已提交
90 91
          "description": "%typescript.referencesCodeLens.enabled%",
          "scope": "window"
92
        },
93 94 95
        "typescript.implementationsCodeLens.enabled": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
96 97
          "description": "%typescript.implementationsCodeLens.enabled%",
          "scope": "window"
98
        },
99 100 101 102 103 104 105 106 107
        "typescript.tsserver.log": {
          "type": "string",
          "enum": [
            "off",
            "terse",
            "normal",
            "verbose"
          ],
          "default": "off",
M
Matt Bierner 已提交
108 109
          "description": "%typescript.tsserver.log%",
          "scope": "window"
110
        },
111 112 113 114 115 116 117 118
        "typescript.tsserver.pluginPaths": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "%typescript.tsserver.pluginPaths.item%"
          },
          "default": [],
          "description": "%typescript.tsserver.pluginPaths%",
S
Sandeep Somavarapu 已提交
119
          "scope": "application"
120
        },
121 122 123 124 125 126 127 128
        "typescript.tsserver.trace": {
          "type": "string",
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
M
Matt Bierner 已提交
129 130
          "description": "%typescript.tsserver.trace%",
          "scope": "window"
131 132 133 134
        },
        "typescript.useCodeSnippetsOnMethodSuggest": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
135 136
          "description": "%typescript.useCodeSnippetsOnMethodSuggest.dec%",
          "scope": "resource"
137
        },
138 139 140 141 142 143
        "typescript.reportStyleChecksAsWarnings": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.reportStyleChecksAsWarnings%",
          "scope": "window"
        },
144 145 146
        "typescript.validate.enable": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
147
          "description": "%typescript.validate.enable%",
148
          "scope": "window"
149 150 151 152
        },
        "typescript.format.enable": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
153
          "description": "%typescript.format.enable%",
154
          "scope": "window"
155 156 157 158
        },
        "typescript.format.insertSpaceAfterCommaDelimiter": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
159 160
          "description": "%format.insertSpaceAfterCommaDelimiter%",
          "scope": "resource"
161
        },
162 163 164
        "typescript.format.insertSpaceAfterConstructor": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
165 166
          "description": "%format.insertSpaceAfterConstructor%",
          "scope": "resource"
167
        },
168 169 170
        "typescript.format.insertSpaceAfterSemicolonInForStatements": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
171 172
          "description": "%format.insertSpaceAfterSemicolonInForStatements%",
          "scope": "resource"
173 174 175 176
        },
        "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
177 178
          "description": "%format.insertSpaceBeforeAndAfterBinaryOperators%",
          "scope": "resource"
179 180 181 182
        },
        "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
183 184
          "description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%",
          "scope": "resource"
185 186 187 188
        },
        "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
189 190
          "description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%",
          "scope": "resource"
191
        },
192 193 194
        "typescript.format.insertSpaceBeforeFunctionParenthesis": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
195 196
          "description": "%format.insertSpaceBeforeFunctionParenthesis%",
          "scope": "resource"
197
        },
198 199 200
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
201 202
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%",
          "scope": "resource"
203 204 205 206
        },
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
207 208
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%",
          "scope": "resource"
209
        },
210 211
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
          "type": "boolean",
212
          "default": true,
M
Matt Bierner 已提交
213 214
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces%",
          "scope": "resource"
215
        },
216 217 218
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
219 220
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%",
          "scope": "resource"
221 222 223 224
        },
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
225 226
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%",
          "scope": "resource"
227
        },
228 229 230
        "typescript.format.insertSpaceAfterTypeAssertion": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
231 232
          "description": "%format.insertSpaceAfterTypeAssertion%",
          "scope": "resource"
233
        },
234 235 236
        "typescript.format.placeOpenBraceOnNewLineForFunctions": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
237 238
          "description": "%format.placeOpenBraceOnNewLineForFunctions%",
          "scope": "resource"
239 240 241 242
        },
        "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
243 244
          "description": "%format.placeOpenBraceOnNewLineForControlBlocks%",
          "scope": "resource"
245 246 247 248
        },
        "javascript.validate.enable": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
249
          "description": "%javascript.validate.enable%",
250
          "scope": "window"
251 252 253 254
        },
        "javascript.format.enable": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
255
          "description": "%javascript.format.enable%",
256
          "scope": "window"
257 258 259 260
        },
        "javascript.format.insertSpaceAfterCommaDelimiter": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
261 262
          "description": "%format.insertSpaceAfterCommaDelimiter%",
          "scope": "resource"
263
        },
264 265 266
        "javascript.format.insertSpaceAfterConstructor": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
267 268
          "description": "%format.insertSpaceAfterConstructor%",
          "scope": "resource"
269
        },
270 271 272
        "javascript.format.insertSpaceAfterSemicolonInForStatements": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
273 274
          "description": "%format.insertSpaceAfterSemicolonInForStatements%",
          "scope": "resource"
275 276 277 278
        },
        "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
279 280
          "description": "%format.insertSpaceBeforeAndAfterBinaryOperators%",
          "scope": "resource"
281 282 283 284
        },
        "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
285 286
          "description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%",
          "scope": "resource"
287 288 289 290
        },
        "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
291 292
          "description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%",
          "scope": "resource"
293
        },
294 295 296
        "javascript.format.insertSpaceBeforeFunctionParenthesis": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
297 298
          "description": "%format.insertSpaceBeforeFunctionParenthesis%",
          "scope": "resource"
299
        },
300 301 302
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
303 304
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%",
          "scope": "resource"
305 306 307 308
        },
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
309 310
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%",
          "scope": "resource"
311
        },
312 313
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
          "type": "boolean",
314
          "default": true,
M
Matt Bierner 已提交
315 316
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces%",
          "scope": "resource"
317
        },
318 319 320
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
321 322
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces%",
          "scope": "resource"
323 324 325 326
        },
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
327 328
          "description": "%format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces%",
          "scope": "resource"
329 330 331 332
        },
        "javascript.format.placeOpenBraceOnNewLineForFunctions": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
333 334
          "description": "%format.placeOpenBraceOnNewLineForFunctions%",
          "scope": "resource"
335 336 337 338
        },
        "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
          "type": "boolean",
          "default": false,
M
Matt Bierner 已提交
339 340
          "description": "%format.placeOpenBraceOnNewLineForControlBlocks%",
          "scope": "resource"
341 342 343 344
        },
        "jsDocCompletion.enabled": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
345 346
          "description": "%jsDocCompletion.enabled%",
          "scope": "resource"
347 348 349 350
        },
        "javascript.implicitProjectConfig.checkJs": {
          "type": "boolean",
          "default": false,
351
          "description": "%javascript.implicitProjectConfig.checkJs%",
352
          "scope": "window"
353 354 355 356 357
        },
        "javascript.implicitProjectConfig.experimentalDecorators": {
          "type": "boolean",
          "default": false,
          "description": "%javascript.implicitProjectConfig.experimentalDecorators%",
358
          "scope": "window"
359 360 361 362
        },
        "javascript.nameSuggestions": {
          "type": "boolean",
          "default": true,
M
Matt Bierner 已提交
363 364
          "description": "%javascript.nameSuggestions%",
          "scope": "resource"
365 366 367 368 369 370
        },
        "typescript.tsc.autoDetect": {
          "type": "string",
          "default": "on",
          "enum": [
            "on",
371
            "off",
372 373 374
            "build",
            "watch"
          ],
375
          "description": "%typescript.tsc.autoDetect%",
M
Matt Bierner 已提交
376
          "scope": "window"
377 378 379 380 381 382
        },
        "typescript.quickSuggestionsForPaths": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.quickSuggestionsForPaths%",
          "scope": "resource"
383
        },
384 385 386 387 388 389
        "typescript.autoImportSuggestions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.autoImportSuggestions.enabled%",
          "scope": "resource"
        },
390 391 392 393 394
        "typescript.locale": {
          "type": [
            "string",
            "null"
          ],
M
Matt Bierner 已提交
395 396 397 398 399 400 401 402 403 404 405 406 407
          "enum": [
            "de",
            "es",
            "en",
            "fr",
            "it",
            "ja",
            "ko",
            "ru",
            "zh-CN",
            "zh-TW",
            null
          ],
408 409 410
          "default": null,
          "description": "%typescript.locale%",
          "scope": "window"
411 412 413
        },
        "typescript.experimental.syntaxFolding": {
          "type": "boolean",
414
          "default": true,
415
          "description": "%typescript.experimental.syntaxFolding%"
416 417 418 419 420 421 422 423 424 425 426 427
        },
        "javascript.suggestionActions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%javascript.suggestionActions.enabled%",
          "scope": "window"
        },
        "typescript.suggestionActions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.suggestionActions.enabled%",
          "scope": "window"
428 429 430 431 432 433
        }
      }
    },
    "commands": [
      {
        "command": "typescript.reloadProjects",
434
        "title": "%typescript.reloadProjects.title%",
435
        "category": "TypeScript"
436 437 438
      },
      {
        "command": "javascript.reloadProjects",
439
        "title": "%javascript.reloadProjects.title%",
440
        "category": "JavaScript"
441 442 443
      },
      {
        "command": "typescript.selectTypeScriptVersion",
444
        "title": "%typescript.selectTypeScriptVersion.title%",
445 446 447 448
        "category": "TypeScript"
      },
      {
        "command": "typescript.goToProjectConfig",
449
        "title": "%typescript.goToProjectConfig.title%",
450 451
        "category": "TypeScript"
      },
M
Matt Bierner 已提交
452
      {
453
        "command": "javascript.goToProjectConfig",
454
        "title": "%javascript.goToProjectConfig.title%",
455
        "category": "JavaScript"
456 457 458
      },
      {
        "command": "typescript.openTsServerLog",
459
        "title": "%typescript.openTsServerLog.title%",
460
        "category": "TypeScript"
461 462 463
      },
      {
        "command": "typescript.restartTsServer",
464
        "title": "%typescript.restartTsServer%",
465
        "category": "TypeScript"
466
      }
467
    ],
468 469 470 471
    "menus": {
      "commandPalette": [
        {
          "command": "typescript.reloadProjects",
472
          "when": "editorLangId == typescript && typescript.isManagedFile"
473 474 475
        },
        {
          "command": "typescript.reloadProjects",
476
          "when": "editorLangId == typescriptreact && typescript.isManagedFile"
477 478 479
        },
        {
          "command": "javascript.reloadProjects",
480
          "when": "editorLangId == javascript && typescript.isManagedFile"
481 482 483
        },
        {
          "command": "javascript.reloadProjects",
484
          "when": "editorLangId == javascriptreact && typescript.isManagedFile"
485 486 487
        },
        {
          "command": "typescript.goToProjectConfig",
488
          "when": "editorLangId == typescript && typescript.isManagedFile"
489 490 491 492 493 494
        },
        {
          "command": "typescript.goToProjectConfig",
          "when": "editorLangId == typescriptreact"
        },
        {
495
          "command": "javascript.goToProjectConfig",
496
          "when": "editorLangId == javascript && typescript.isManagedFile"
497 498
        },
        {
499
          "command": "javascript.goToProjectConfig",
500
          "when": "editorLangId == javascriptreact && typescript.isManagedFile"
501 502 503 504 505 506 507 508 509 510 511 512
        },
        {
          "command": "typescript.selectTypeScriptVersion",
          "when": "typescript.isManagedFile"
        },
        {
          "command": "typescript.openTsServerLog",
          "when": "typescript.isManagedFile"
        },
        {
          "command": "typescript.restartTsServer",
          "when": "typescript.isManagedFile"
513 514 515
        }
      ]
    },
516 517 518 519 520 521 522 523
    "breakpoints": [
      {
        "language": "typescript"
      },
      {
        "language": "typescriptreact"
      }
    ],
D
Dirk Baeumer 已提交
524
    "taskDefinitions": [
D
Dirk Baeumer 已提交
525 526
      {
        "type": "typescript",
527 528 529
        "required": [
          "tsconfig"
        ],
D
Dirk Baeumer 已提交
530 531 532
        "properties": {
          "tsconfig": {
            "type": "string",
533
            "description": "%taskDefinition.tsconfig.description%"
534 535 536
          },
          "option": {
            "type": "string"
D
Dirk Baeumer 已提交
537 538 539 540
          }
        }
      }
    ],
541 542 543 544 545 546 547 548 549 550 551 552 553 554
    "problemPatterns": [
      {
        "name": "tsc",
        "regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
        "file": 1,
        "location": 2,
        "severity": 3,
        "code": 4,
        "message": 5
      }
    ],
    "problemMatchers": [
      {
        "name": "tsc",
555
        "label": "%typescript.problemMatchers.tsc.label%",
556
        "owner": "typescript",
557
        "source": "ts",
558
        "applyTo": "closedDocuments",
J
Johannes Rieken 已提交
559 560 561 562 563
        "fileLocation": [
          "relative",
          "${cwd}"
        ],
        "pattern": "$tsc"
564 565 566
      },
      {
        "name": "tsc-watch",
567
        "label": "%typescript.problemMatchers.tscWatch.label%",
568
        "owner": "typescript",
569
        "source": "ts",
570
        "applyTo": "closedDocuments",
J
Johannes Rieken 已提交
571 572 573 574
        "fileLocation": [
          "relative",
          "${cwd}"
        ],
575
        "pattern": "$tsc",
576
        "background": {
577 578
          "activeOnStart": true,
          "beginsPattern": {
579
            "regexp": "^\\s*(?:message TS6032:|\\[?\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM| a\\.m\\.| p\\.m\\.)?(?:\\]| -)) File change detected\\. Starting incremental compilation\\.\\.\\."
580 581
          },
          "endsPattern": {
582
            "regexp": "^\\s*(?:message TS6042:|\\[?\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM| a\\.m\\.| p\\.m\\.)?(?:\\]| -)) Compilation complete\\. Watching for file changes\\."
583 584 585
          }
        }
      }
586 587
    ]
  }
M
Matt Bierner 已提交
588
}