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.

44 rader
1.5 KiB

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