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