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.

165 lines
5.0 KiB

3 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": "Run Tests",
  53. "type": "pwa-extensionHost",
  54. "request": "launch",
  55. "args": [
  56. "--disable-extensions",
  57. "--extensionDevelopmentPath=${workspaceFolder}",
  58. "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
  59. ],
  60. "outFiles": ["${workspaceFolder}/out/test/**/*.js", "${workspaceFolder}/dist/**/*.js"],
  61. "presentation": {
  62. "group": "2_run_tests",
  63. "order": 2
  64. },
  65. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  66. "smartStep": true,
  67. "sourceMaps": true
  68. },
  69. {
  70. "name": "Watch & Run",
  71. "type": "pwa-extensionHost",
  72. "request": "launch",
  73. "runtimeExecutable": "${execPath}",
  74. "args": ["--disable-extension=eamodio.gitlens-insiders", "--extensionDevelopmentPath=${workspaceFolder}"],
  75. "cwd": "${workspaceFolder}",
  76. "debugWebviews": true,
  77. "rendererDebugOptions": {
  78. "sourceMaps": true,
  79. // "urlFilter": "*eamodio.gitlens*",
  80. "webRoot": "${workspaceFolder}/src/webviews/apps"
  81. },
  82. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  83. "preLaunchTask": "${defaultBuildTask}",
  84. "presentation": {
  85. "group": "1_watch",
  86. "order": 1
  87. },
  88. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  89. "smartStep": true,
  90. "sourceMaps": true,
  91. "trace": true
  92. },
  93. {
  94. "name": "Watch & Run (web)",
  95. "type": "pwa-extensionHost",
  96. "request": "launch",
  97. "runtimeExecutable": "${execPath}",
  98. "args": [
  99. // "--folder-uri=vscode-vfs://github/gitkraken/vscode-gitlens",
  100. "--disable-extension=eamodio.gitlens-insiders",
  101. "--extensionDevelopmentPath=${workspaceFolder}",
  102. "--extensionDevelopmentKind=web"
  103. ],
  104. "cwd": "${workspaceFolder}",
  105. "debugWebWorkerHost": true,
  106. "rendererDebugOptions": {
  107. "sourceMaps": true,
  108. "webRoot": "${workspaceFolder}"
  109. },
  110. "outFiles": ["${workspaceFolder}/dist/browser/**/*.js"],
  111. "preLaunchTask": "${defaultBuildTask}",
  112. "presentation": {
  113. "group": "1_watch",
  114. "order": 1
  115. },
  116. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  117. "smartStep": true,
  118. "sourceMaps": true,
  119. "trace": true
  120. },
  121. {
  122. "name": "Watch & Run (sandboxed)",
  123. "type": "pwa-extensionHost",
  124. "request": "launch",
  125. "runtimeExecutable": "${execPath}",
  126. "args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}"],
  127. "cwd": "${workspaceFolder}",
  128. "debugWebviews": true,
  129. "rendererDebugOptions": {
  130. "sourceMaps": true,
  131. // "urlFilter": "*eamodio.gitlens*",
  132. "webRoot": "${workspaceFolder}/src/webviews/apps"
  133. },
  134. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  135. "preLaunchTask": "${defaultBuildTask}",
  136. "presentation": {
  137. "group": "1_watch",
  138. "order": 2
  139. },
  140. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  141. "smartStep": true,
  142. "sourceMaps": true,
  143. "trace": true
  144. },
  145. {
  146. "name": "Watch & Run Tests",
  147. "type": "pwa-extensionHost",
  148. "request": "launch",
  149. "args": [
  150. "--disable-extensions",
  151. "--extensionDevelopmentPath=${workspaceFolder}",
  152. "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
  153. ],
  154. "outFiles": ["${workspaceFolder}/out/test/**/*.js", "${workspaceFolder}/dist/**/*.js"],
  155. "preLaunchTask": "npm: watch:tests",
  156. "presentation": {
  157. "group": "1_watch_tests",
  158. "order": 2
  159. },
  160. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  161. "smartStep": true,
  162. "sourceMaps": true
  163. }
  164. ]
  165. }