launch.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // A launch configuration that compiles the extension and then opens it inside a new window
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. {
  6. "version": "0.2.0",
  7. "configurations": [
  8. {
  9. "name": "Run Extension",
  10. "type": "extensionHost",
  11. "request": "launch",
  12. "runtimeExecutable": "${execPath}",
  13. "args": ["--extensionDevelopmentPath=${workspaceFolder}/src"],
  14. "sourceMaps": true,
  15. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  16. "preLaunchTask": "${defaultBuildTask}",
  17. "env": {
  18. "NODE_ENV": "development",
  19. "VSCODE_DEBUG_MODE": "true",
  20. "KILOCODE_DEV_AGENT_RUNTIME_PATH": "${workspaceFolder}/dist/agent-runtime-process.js"
  21. },
  22. "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
  23. "presentation": {
  24. "hidden": false,
  25. "group": "tasks",
  26. "order": 1
  27. }
  28. },
  29. {
  30. "name": "Run Extension [Isolated]",
  31. "type": "extensionHost",
  32. "request": "launch",
  33. "runtimeExecutable": "${execPath}",
  34. "args": [
  35. "--extensionDevelopmentPath=${workspaceFolder}/src",
  36. "--disable-extensions",
  37. "${input:extensionLaunchDir}"
  38. ],
  39. "sourceMaps": true,
  40. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  41. "preLaunchTask": "${defaultBuildTask}",
  42. "env": {
  43. "NODE_ENV": "development",
  44. "VSCODE_DEBUG_MODE": "true",
  45. "KILOCODE_DEV_AGENT_RUNTIME_PATH": "${workspaceFolder}/dist/agent-runtime-process.js"
  46. },
  47. "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
  48. "presentation": { "hidden": false, "group": "tasks", "order": 1 }
  49. },
  50. {
  51. "name": "Run Extension [Local Backend]",
  52. "type": "extensionHost",
  53. "request": "launch",
  54. "runtimeExecutable": "${execPath}",
  55. "args": ["--extensionDevelopmentPath=${workspaceFolder}/src", "--disable-extensions"],
  56. "sourceMaps": true,
  57. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  58. "preLaunchTask": "${defaultBuildTask}",
  59. "env": {
  60. "NODE_ENV": "development",
  61. "VSCODE_DEBUG_MODE": "true",
  62. "KILOCODE_BACKEND_BASE_URL": "${input:kilocodeBackendBaseUrl}",
  63. "KILOCODE_DEV_AGENT_RUNTIME_PATH": "${workspaceFolder}/dist/agent-runtime-process.js"
  64. },
  65. "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
  66. "presentation": { "hidden": false, "group": "tasks", "order": 2 }
  67. }
  68. ],
  69. "inputs": [
  70. {
  71. "id": "extensionLaunchDir",
  72. "description": "Directory the dev extension will open in",
  73. "default": "${workspaceFolder}/launch",
  74. "type": "promptString"
  75. },
  76. {
  77. "id": "kilocodeBackendBaseUrl",
  78. "description": "Override the kilocode backend base URL",
  79. "default": "http://localhost:3000",
  80. "type": "promptString"
  81. }
  82. ]
  83. }