You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
  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": "0.1.0",
  11. "command": "npm",
  12. "args": ["run"],
  13. "isShellCommand": true,
  14. "showOutput": "always",
  15. "suppressTaskName": true,
  16. // use the standard tsc in watch mode problem matcher to find compile problems in the output.
  17. "tasks": [{
  18. "taskName": "compile",
  19. "args": ["compile", "--loglevel", "silent"],
  20. "isBuildCommand": true,
  21. "isWatching": true,
  22. "problemMatcher": "$tsc-watch"
  23. }, {
  24. "taskName": "tslint",
  25. "args": ["lint", "--loglevel", "silent"],
  26. "isWatching": true,
  27. "problemMatcher": {
  28. "owner": "tslint",
  29. "fileLocation": [
  30. "relative",
  31. "${workspaceRoot}"
  32. ],
  33. "severity": "warning",
  34. "pattern": {
  35. "regexp": "^(\\S.*)\\[(\\d+), (\\d+)\\]:\\s+(.*)$",
  36. "file": 1,
  37. "line": 2,
  38. "column": 3,
  39. "message": 4
  40. }
  41. }
  42. }]
  43. }