Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

149 řádky
5.1 KiB

před 8 roky
  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": false
  17. },
  18. "tasks": [
  19. {
  20. "type": "npm",
  21. "script": "build",
  22. "group": "build",
  23. "problemMatcher": [
  24. {
  25. "fileLocation": "absolute",
  26. "owner": "typescript",
  27. "pattern": [
  28. {
  29. "regexp": "\\[tsl\\] ERROR in (.*)?\\((\\d+),(\\d+)\\)",
  30. "file": 1,
  31. "line": 2,
  32. "column": 3
  33. },
  34. {
  35. "regexp": "\\s*TS\\d+:\\s*(.*)",
  36. "message": 1
  37. }
  38. ],
  39. "severity": "error",
  40. "source": "ts"
  41. },
  42. {
  43. "fileLocation": "relative",
  44. "owner": "typescript",
  45. "pattern": [
  46. {
  47. "regexp": "WARNING in (.*)",
  48. "file": 1
  49. },
  50. {
  51. "regexp": "Module Warning (.*)"
  52. },
  53. {
  54. "regexp": "\\[(\\d+), (\\d+)\\]: (.*)",
  55. "line": 1,
  56. "column": 2,
  57. "message": 3
  58. }
  59. ],
  60. "severity": "warning",
  61. "source": "tslint",
  62. "background": {
  63. "activeOnStart": true,
  64. "beginsPattern": {
  65. "regexp": "webpack is watching the files..."
  66. },
  67. "endsPattern": {
  68. "regexp": "Built at\\:(.*)"
  69. }
  70. }
  71. }
  72. ]
  73. },
  74. {
  75. "type": "npm",
  76. "script": "lint",
  77. "group": "build",
  78. "problemMatcher": ["$tslint5"]
  79. },
  80. {
  81. "type": "npm",
  82. "script": "watch",
  83. "group": {
  84. "kind": "build",
  85. "isDefault": true
  86. },
  87. "isBackground": true,
  88. "problemMatcher": [
  89. {
  90. "fileLocation": "absolute",
  91. "owner": "typescript",
  92. "pattern": [
  93. {
  94. "regexp": "\\[tsl\\] ERROR in (.*)?\\((\\d+),(\\d+)\\)",
  95. "file": 1,
  96. "line": 2,
  97. "column": 3
  98. },
  99. {
  100. "regexp": "\\s*TS\\d+:\\s*(.*)",
  101. "message": 1
  102. }
  103. ],
  104. "severity": "error",
  105. "source": "ts",
  106. "background": {
  107. "activeOnStart": true,
  108. "beginsPattern": {
  109. "regexp": "webpack is watching the files..."
  110. },
  111. "endsPattern": {
  112. "regexp": "Built at\\:(.*)"
  113. }
  114. }
  115. },
  116. {
  117. "fileLocation": "relative",
  118. "owner": "typescript",
  119. "pattern": [
  120. {
  121. "regexp": "WARNING in (.*)",
  122. "file": 1
  123. },
  124. {
  125. "regexp": "Module Warning (.*)"
  126. },
  127. {
  128. "regexp": "\\[(\\d+), (\\d+)\\]: (.*)",
  129. "line": 1,
  130. "column": 2,
  131. "message": 3
  132. }
  133. ],
  134. "severity": "warning",
  135. "source": "tslint",
  136. "background": {
  137. "activeOnStart": true,
  138. "beginsPattern": {
  139. "regexp": "webpack is watching the files..."
  140. },
  141. "endsPattern": {
  142. "regexp": "Built at\\:(.*)"
  143. }
  144. }
  145. }
  146. ]
  147. }
  148. ]
  149. }