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