launch.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. },
  21. "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
  22. "presentation": {
  23. "hidden": false,
  24. "group": "tasks",
  25. "order": 1
  26. }
  27. },
  28. {
  29. "name": "Run Extension [Isolated]",
  30. "type": "extensionHost",
  31. "request": "launch",
  32. "runtimeExecutable": "${execPath}",
  33. "args": [
  34. "--extensionDevelopmentPath=${workspaceFolder}/src",
  35. "--disable-extensions",
  36. "${input:extensionLaunchDir}"
  37. ],
  38. "sourceMaps": true,
  39. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  40. "preLaunchTask": "${defaultBuildTask}",
  41. "env": {
  42. "NODE_ENV": "development",
  43. "VSCODE_DEBUG_MODE": "true"
  44. },
  45. "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
  46. "presentation": { "hidden": false, "group": "tasks", "order": 1 }
  47. }
  48. ],
  49. "inputs": [
  50. {
  51. "id": "extensionLaunchDir",
  52. "description": "Directory the dev extension will open in",
  53. "default": "${workspaceFolder}/launch",
  54. "type": "promptString"
  55. }
  56. ]
  57. }