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