tasks.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "version": "2.0.0",
  3. "command": "go",
  4. "type": "shell",
  5. "presentation": {
  6. "echo": true,
  7. "reveal": "always",
  8. "focus": false,
  9. "panel": "shared"
  10. },
  11. "tasks": [
  12. {
  13. "label": "build",
  14. "args": ["v2ray.com/core/..."],
  15. "group": "build",
  16. "problemMatcher": {
  17. "owner": "go",
  18. "fileLocation": ["relative", "${workspaceRoot}"],
  19. "pattern": {
  20. "regexp": "^([^:]+\\.go):(\\d+):(.*)",
  21. "file": 1,
  22. "line": 2,
  23. "message": 3
  24. }
  25. }
  26. },
  27. {
  28. "label": "test",
  29. "args": ["-p", "1", "v2ray.com/core/..."],
  30. "group": "test"
  31. },
  32. {
  33. "label": "Escape Analysis",
  34. "type": "shell",
  35. "command": "go build -gcflags -m .",
  36. "problemMatcher": {
  37. "pattern": {
  38. "regexp": "^(.*):(.*):(.*): (.*)$",
  39. "file": 1,
  40. "line": 2,
  41. "column": 3,
  42. "message": 4
  43. },
  44. "fileLocation": ["relative", "${fileDirname}"]
  45. },
  46. "options": {
  47. "cwd": "${fileDirname}"
  48. }
  49. }
  50. ]
  51. }