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