Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

129 rader
3.9 KiB

8 år sedan
  1. // Available variables which can be used inside of strings.
  2. // ${workspaceRoot}: the root folder of the team
  3. // ${file}: the current opened file
  4. // ${fileBasename}: the current opened file's basename
  5. // ${fileDirname}: the current opened file's dirname
  6. // ${fileExtname}: the current opened file's extension
  7. // ${cwd}: the current working directory of the spawned process
  8. // A task runner that calls a custom npm script that compiles the extension.
  9. {
  10. "version": "2.0.0",
  11. "presentation": {
  12. "echo": false,
  13. "reveal": "always",
  14. "focus": false,
  15. "panel": "dedicated",
  16. "showReuseMessage": true
  17. },
  18. "tasks": [
  19. {
  20. "type": "npm",
  21. "script": "build",
  22. "group": "build",
  23. "problemMatcher": [
  24. "$tsc",
  25. "$tslint5"
  26. ],
  27. },
  28. {
  29. "type": "npm",
  30. "script": "lint",
  31. "group": "build",
  32. "problemMatcher": [
  33. "$tslint5"
  34. ]
  35. },
  36. {
  37. "type": "npm",
  38. "script": "rebuild",
  39. "problemMatcher": [
  40. "$tsc",
  41. "$tslint5"
  42. ],
  43. "group": "build"
  44. },
  45. {
  46. "type": "npm",
  47. "script": "watch",
  48. "group": "build",
  49. "isBackground": true,
  50. "problemMatcher": [
  51. "$tsc-watch"
  52. ]
  53. },
  54. {
  55. "type": "npm",
  56. "script": "ui:watch",
  57. "group": "build",
  58. "isBackground": true,
  59. "problemMatcher": [
  60. {
  61. "owner": "typescript",
  62. "severity": "error",
  63. "fileLocation": "relative",
  64. "background": {
  65. "activeOnStart": true,
  66. "beginsPattern": {
  67. "regexp": "webpack is watching the files..."
  68. },
  69. "endsPattern": {
  70. "regexp": "Built at\\:(.*)"
  71. }
  72. },
  73. "pattern": [
  74. {
  75. "regexp": "ERROR in \\[at-loader\\] ([^:]*):(\\d+):(\\d+)",
  76. "file": 1,
  77. "line": 2,
  78. "column": 3
  79. },
  80. {
  81. "regexp": "TS(.*)",
  82. "message": 1
  83. }
  84. ]
  85. }
  86. ]
  87. },
  88. {
  89. "label": "watch",
  90. "dependsOn": [
  91. "npm: ui:watch",
  92. "npm: watch"
  93. ],
  94. "group": {
  95. "kind": "build",
  96. "isDefault": true
  97. },
  98. "isBackground": true,
  99. "problemMatcher": [
  100. "$tsc-watch",
  101. {
  102. "owner": "typescript",
  103. "severity": "error",
  104. "fileLocation": "relative",
  105. "background": {
  106. "activeOnStart": true,
  107. "beginsPattern": {
  108. "regexp": "webpack is watching the files..."
  109. },
  110. "endsPattern": {
  111. "regexp": "Built at\\:(.*)"
  112. }
  113. },
  114. "pattern": [
  115. {
  116. "regexp": "ERROR in \\[at-loader\\] ([^:]*):(\\d+):(\\d+)",
  117. "file": 1,
  118. "line": 2,
  119. "column": 3
  120. },
  121. {
  122. "regexp": "TS(.*)",
  123. "message": 1
  124. }
  125. ]
  126. }
  127. ]
  128. }
  129. ]
  130. }