Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

43 lignes
1.4 KiB

il y a 8 ans
il y a 8 ans
il y a 8 ans
  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. }