tasks.json 854 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "go: build",
  6. "type": "shell",
  7. "command": "go",
  8. "args": ["build", "-o", "bin/3x-ui.exe", "./main.go"],
  9. "options": {
  10. "cwd": "${workspaceFolder}"
  11. },
  12. "problemMatcher": ["$go"],
  13. "group": { "kind": "build", "isDefault": true }
  14. },
  15. {
  16. "label": "go: run",
  17. "type": "shell",
  18. "command": "go",
  19. "args": ["run", "./main.go"],
  20. "options": {
  21. "cwd": "${workspaceFolder}",
  22. "env": {
  23. "XUI_DEBUG": "true"
  24. }
  25. },
  26. "problemMatcher": ["$go"]
  27. },
  28. {
  29. "label": "go: test",
  30. "type": "shell",
  31. "command": "go",
  32. "args": ["test", "./..."],
  33. "options": {
  34. "cwd": "${workspaceFolder}"
  35. },
  36. "problemMatcher": ["$go"],
  37. "group": "test"
  38. }
  39. ]
  40. }