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