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