package.json 24.0 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
        },
        "typescript.quickSuggestionsForPaths": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.quickSuggestionsForPaths%",
400 401 402 403 404 405 406 407 408 409 410 411 412
          "scope": "resource",
          "deprecationMessage": "%typescript.quickSuggestionsForPaths.deprecationMessage%"
        },
        "javascript.suggest.paths": {
          "type": "boolean",
          "default": true,
          "description": "%configuration.suggest.paths%",
          "scope": "resource"
        },
        "typescript.suggest.paths": {
          "type": "boolean",
          "default": true,
          "description": "%configuration.suggest.paths%",
413
          "scope": "resource"
414
        },
415 416 417 418
        "typescript.autoImportSuggestions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.autoImportSuggestions.enabled%",
419 420 421 422 423 424 425 426 427 428 429 430 431
          "scope": "resource",
          "deprecationMessage": "%typescript.autoImportSuggestions.enabled.deprecationMessage%"
        },
        "javascript.suggest.autoImports": {
          "type": "boolean",
          "default": true,
          "description": "%configuration.suggest.autoImports%",
          "scope": "resource"
        },
        "typescript.suggest.autoImports": {
          "type": "boolean",
          "default": true,
          "description": "%configuration.suggest.autoImports%",
432 433
          "scope": "resource"
        },
434 435 436 437 438
        "typescript.locale": {
          "type": [
            "string",
            "null"
          ],
M
Matt Bierner 已提交
439 440 441 442 443 444 445 446 447 448 449 450 451
          "enum": [
            "de",
            "es",
            "en",
            "fr",
            "it",
            "ja",
            "ko",
            "ru",
            "zh-CN",
            "zh-TW",
            null
          ],
452
          "default": null,
453
          "markdownDescription": "%typescript.locale%",
454
          "scope": "window"
455
        },
456 457 458 459
        "javascript.suggestionActions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%javascript.suggestionActions.enabled%",
460
          "scope": "resource"
461 462 463 464 465
        },
        "typescript.suggestionActions.enabled": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.suggestionActions.enabled%",
466
          "scope": "resource"
M
Matt Bierner 已提交
467 468 469 470
        },
        "javascript.preferences.quoteStyle": {
          "type": "string",
          "enum": [
471
            "auto",
M
Matt Bierner 已提交
472 473 474
            "single",
            "double"
          ],
475
          "default": "auto",
476
          "markdownDescription": "%typescript.preferences.quoteStyle%",
477
          "scope": "resource"
M
Matt Bierner 已提交
478 479 480 481
        },
        "typescript.preferences.quoteStyle": {
          "type": "string",
          "enum": [
482
            "auto",
M
Matt Bierner 已提交
483 484 485
            "single",
            "double"
          ],
486
          "default": "auto",
487
          "markdownDescription": "%typescript.preferences.quoteStyle%",
488
          "scope": "resource"
489 490 491 492
        },
        "javascript.preferences.importModuleSpecifier": {
          "type": "string",
          "enum": [
493
            "auto",
494 495 496
            "relative",
            "non-relative"
          ],
497
          "markdownEnumDescriptions": [
M
Matt Bierner 已提交
498 499 500 501
            "%typescript.preferences.importModuleSpecifier.auto%",
            "%typescript.preferences.importModuleSpecifier.relative%",
            "%typescript.preferences.importModuleSpecifier.nonRelative%"
          ],
502
          "default": "auto",
503
          "description": "%typescript.preferences.importModuleSpecifier%",
504
          "scope": "resource"
505 506 507 508
        },
        "typescript.preferences.importModuleSpecifier": {
          "type": "string",
          "enum": [
509
            "auto",
510 511 512
            "relative",
            "non-relative"
          ],
513 514 515 516 517
          "enumDescriptions": [
            "%typescript.preferences.importModuleSpecifier.auto%",
            "%typescript.preferences.importModuleSpecifier.relative%",
            "%typescript.preferences.importModuleSpecifier.nonRelative%"
          ],
518
          "default": "auto",
519
          "description": "%typescript.preferences.importModuleSpecifier%",
520
          "scope": "resource"
521
        },
522 523 524 525 526 527 528
        "typescript.updateImportsOnFileMove.enabled": {
          "type": "string",
          "enum": [
            "prompt",
            "always",
            "never"
          ],
R
Rob Lourens 已提交
529 530 531 532 533
          "enumDescriptions": [
            "%typescript.updateImportsOnFileMove.enabled.prompt%",
            "%typescript.updateImportsOnFileMove.enabled.always%",
            "%typescript.updateImportsOnFileMove.enabled.never%"
          ],
534 535 536 537 538 539 540 541 542 543 544 545 546 547
          "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"
548 549 550 551 552 553 554 555 556 557
        },
        "typescript.autoClosingTags": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.autoClosingTags%"
        },
        "javascript.autoClosingTags": {
          "type": "boolean",
          "default": true,
          "description": "%typescript.autoClosingTags%"
558
        },
559
        "javascript.suggest.enabled": {
560 561
          "type": "boolean",
          "default": true,
562
          "description": "%typescript.suggest.enabled%",
563 564
          "scope": "resource"
        },
565
        "typescript.suggest.enabled": {
566 567
          "type": "boolean",
          "default": true,
568
          "description": "%typescript.suggest.enabled%",
569
          "scope": "resource"
570 571 572 573 574 575
        }
      }
    },
    "commands": [
      {
        "command": "typescript.reloadProjects",
576
        "title": "%reloadProjects.title%",
577
        "category": "TypeScript"
578 579 580
      },
      {
        "command": "javascript.reloadProjects",
581
        "title": "%reloadProjects.title%",
582
        "category": "JavaScript"
583 584 585
      },
      {
        "command": "typescript.selectTypeScriptVersion",
586
        "title": "%typescript.selectTypeScriptVersion.title%",
587 588 589 590
        "category": "TypeScript"
      },
      {
        "command": "typescript.goToProjectConfig",
591
        "title": "%goToProjectConfig.title%",
592 593
        "category": "TypeScript"
      },
M
Matt Bierner 已提交
594
      {
595
        "command": "javascript.goToProjectConfig",
596
        "title": "%goToProjectConfig.title%",
597
        "category": "JavaScript"
598 599 600
      },
      {
        "command": "typescript.openTsServerLog",
601
        "title": "%typescript.openTsServerLog.title%",
602
        "category": "TypeScript"
603 604 605
      },
      {
        "command": "typescript.restartTsServer",
606
        "title": "%typescript.restartTsServer%",
607
        "category": "TypeScript"
608
      }
609
    ],
610 611 612 613
    "menus": {
      "commandPalette": [
        {
          "command": "typescript.reloadProjects",
614
          "when": "editorLangId == typescript && typescript.isManagedFile"
615 616 617
        },
        {
          "command": "typescript.reloadProjects",
618
          "when": "editorLangId == typescriptreact && typescript.isManagedFile"
619 620 621
        },
        {
          "command": "javascript.reloadProjects",
622
          "when": "editorLangId == javascript && typescript.isManagedFile"
623 624 625
        },
        {
          "command": "javascript.reloadProjects",
626
          "when": "editorLangId == javascriptreact && typescript.isManagedFile"
627 628 629
        },
        {
          "command": "typescript.goToProjectConfig",
630
          "when": "editorLangId == typescript && typescript.isManagedFile"
631 632 633 634 635 636
        },
        {
          "command": "typescript.goToProjectConfig",
          "when": "editorLangId == typescriptreact"
        },
        {
637
          "command": "javascript.goToProjectConfig",
638
          "when": "editorLangId == javascript && typescript.isManagedFile"
639 640
        },
        {
641
          "command": "javascript.goToProjectConfig",
642
          "when": "editorLangId == javascriptreact && typescript.isManagedFile"
643 644 645 646 647 648 649 650 651 652 653 654
        },
        {
          "command": "typescript.selectTypeScriptVersion",
          "when": "typescript.isManagedFile"
        },
        {
          "command": "typescript.openTsServerLog",
          "when": "typescript.isManagedFile"
        },
        {
          "command": "typescript.restartTsServer",
          "when": "typescript.isManagedFile"
655 656 657
        }
      ]
    },
658 659 660 661 662 663 664 665
    "breakpoints": [
      {
        "language": "typescript"
      },
      {
        "language": "typescriptreact"
      }
    ],
D
Dirk Baeumer 已提交
666
    "taskDefinitions": [
D
Dirk Baeumer 已提交
667 668
      {
        "type": "typescript",
669 670 671
        "required": [
          "tsconfig"
        ],
D
Dirk Baeumer 已提交
672 673 674
        "properties": {
          "tsconfig": {
            "type": "string",
675
            "description": "%taskDefinition.tsconfig.description%"
676 677 678
          },
          "option": {
            "type": "string"
D
Dirk Baeumer 已提交
679 680 681 682
          }
        }
      }
    ],
683 684 685
    "problemPatterns": [
      {
        "name": "tsc",
686
        "regexp": "^([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
687
        "file": 1,
688 689 690 691 692
        "line": 2,
        "column": 3,
        "severity": 4,
        "code": 5,
        "message": 6
693 694 695 696 697
      }
    ],
    "problemMatchers": [
      {
        "name": "tsc",
698
        "label": "%typescript.problemMatchers.tsc.label%",
699
        "owner": "typescript",
700
        "source": "ts",
701
        "applyTo": "closedDocuments",
J
Johannes Rieken 已提交
702 703 704 705 706
        "fileLocation": [
          "relative",
          "${cwd}"
        ],
        "pattern": "$tsc"
707 708 709
      },
      {
        "name": "tsc-watch",
710
        "label": "%typescript.problemMatchers.tscWatch.label%",
711
        "owner": "typescript",
712
        "source": "ts",
713
        "applyTo": "closedDocuments",
J
Johannes Rieken 已提交
714 715 716 717
        "fileLocation": [
          "relative",
          "${cwd}"
        ],
718
        "pattern": "$tsc",
719
        "background": {
720 721
          "activeOnStart": true,
          "beginsPattern": {
722
            "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\\.\\.\\."
723 724
          },
          "endsPattern": {
725
            "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\\."
726 727 728
          }
        }
      }
729 730
    ]
  }
731
}