You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
3.8 KiB

2 years ago
  1. // A launch configuration that compiles the extension and then opens it inside a new window
  2. {
  3. "version": "0.2.0",
  4. "configurations": [
  5. {
  6. "name": "Run",
  7. "type": "pwa-extensionHost",
  8. "request": "launch",
  9. "runtimeExecutable": "${execPath}",
  10. "args": ["--disable-extension=eamodio.gitlens-insiders", "--extensionDevelopmentPath=${workspaceFolder}"],
  11. "cwd": "${workspaceFolder}",
  12. "debugWebviews": true,
  13. "rendererDebugOptions": {
  14. "sourceMaps": true,
  15. "urlFilter": "*eamodio.gitlens*",
  16. "webRoot": "${workspaceFolder}/src/webviews/apps"
  17. },
  18. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  19. "presentation": {
  20. "group": "2_run",
  21. "order": 1
  22. },
  23. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  24. "smartStep": true,
  25. "sourceMaps": true,
  26. "trace": true
  27. },
  28. {
  29. "name": "Run (sandboxed)",
  30. "type": "pwa-extensionHost",
  31. "request": "launch",
  32. "runtimeExecutable": "${execPath}",
  33. "args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}"],
  34. "cwd": "${workspaceFolder}",
  35. "debugWebviews": true,
  36. "rendererDebugOptions": {
  37. "sourceMaps": true,
  38. "urlFilter": "*eamodio.gitlens*",
  39. "webRoot": "${workspaceFolder}/src/webviews/apps"
  40. },
  41. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  42. "presentation": {
  43. "group": "2_run",
  44. "order": 2
  45. },
  46. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  47. "smartStep": true,
  48. "sourceMaps": true,
  49. "trace": true
  50. },
  51. {
  52. "name": "Watch & Run",
  53. "type": "pwa-extensionHost",
  54. "request": "launch",
  55. "runtimeExecutable": "${execPath}",
  56. "args": ["--disable-extension=eamodio.gitlens-insiders", "--extensionDevelopmentPath=${workspaceFolder}"],
  57. "cwd": "${workspaceFolder}",
  58. "debugWebviews": true,
  59. "rendererDebugOptions": {
  60. "sourceMaps": true,
  61. "urlFilter": "*eamodio.gitlens*",
  62. "webRoot": "${workspaceFolder}/src/webviews/apps"
  63. },
  64. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  65. "preLaunchTask": "${defaultBuildTask}",
  66. "presentation": {
  67. "group": "1_watch",
  68. "order": 1
  69. },
  70. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  71. "smartStep": true,
  72. "sourceMaps": true,
  73. "trace": true
  74. },
  75. {
  76. "name": "Watch & Run (web)",
  77. "type": "pwa-extensionHost",
  78. "request": "launch",
  79. "runtimeExecutable": "${execPath}",
  80. "args": [
  81. // "--folder-uri=vscode-vfs://github/gitkraken/vscode-gitlens",
  82. "--disable-extension=eamodio.gitlens-insiders",
  83. "--extensionDevelopmentPath=${workspaceFolder}",
  84. "--extensionDevelopmentKind=web"
  85. ],
  86. "cwd": "${workspaceFolder}",
  87. "debugWebWorkerHost": true,
  88. "rendererDebugOptions": {
  89. "sourceMaps": true,
  90. "webRoot": "${workspaceFolder}/src"
  91. },
  92. "outFiles": ["${workspaceFolder}/dist/browser/**/*.js"],
  93. "preLaunchTask": "${defaultBuildTask}",
  94. "presentation": {
  95. "group": "1_watch",
  96. "order": 1
  97. },
  98. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  99. "smartStep": true,
  100. "sourceMaps": true,
  101. "trace": true
  102. },
  103. {
  104. "name": "Watch & Run (sandboxed)",
  105. "type": "pwa-extensionHost",
  106. "request": "launch",
  107. "runtimeExecutable": "${execPath}",
  108. "args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}"],
  109. "cwd": "${workspaceFolder}",
  110. "debugWebviews": true,
  111. "rendererDebugOptions": {
  112. "sourceMaps": true,
  113. "urlFilter": "*eamodio.gitlens*",
  114. "webRoot": "${workspaceFolder}/src/webviews/apps"
  115. },
  116. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  117. "preLaunchTask": "npm: watch",
  118. "presentation": {
  119. "group": "1_watch",
  120. "order": 2
  121. },
  122. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  123. "smartStep": true,
  124. "sourceMaps": true,
  125. "trace": true
  126. }
  127. ]
  128. }