您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

182 行
5.4 KiB

  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": "extensionHost",
  8. "request": "launch",
  9. "runtimeExecutable": "${execPath}",
  10. "args": ["--profile=Debugging (GitLens)", "--extensionDevelopmentPath=${workspaceFolder}"],
  11. "debugWebviews": true,
  12. "rendererDebugOptions": {
  13. "pauseForSourceMap": true,
  14. "sourceMapRenames": true,
  15. "sourceMaps": true,
  16. // "urlFilter": "*eamodio.gitlens*",
  17. "webRoot": "${workspaceFolder}/src/webviews/apps"
  18. },
  19. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  20. "presentation": {
  21. "group": "2_run",
  22. "order": 1
  23. },
  24. "pauseForSourceMap": true,
  25. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  26. "smartStep": true,
  27. "sourceMapRenames": true,
  28. "sourceMaps": true,
  29. "trace": true
  30. },
  31. {
  32. "name": "Run (sandboxed)",
  33. "type": "extensionHost",
  34. "request": "launch",
  35. "runtimeExecutable": "${execPath}",
  36. "args": ["--profile-temp", "--extensionDevelopmentPath=${workspaceFolder}"],
  37. "debugWebviews": true,
  38. "rendererDebugOptions": {
  39. "pauseForSourceMap": true,
  40. "sourceMapRenames": true,
  41. "sourceMaps": true,
  42. // "urlFilter": "*eamodio.gitlens*",
  43. "webRoot": "${workspaceFolder}/src/webviews/apps"
  44. },
  45. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  46. "pauseForSourceMap": true,
  47. "presentation": {
  48. "group": "2_run",
  49. "order": 2
  50. },
  51. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  52. "smartStep": true,
  53. "sourceMapRenames": true,
  54. "sourceMaps": true,
  55. "trace": true
  56. },
  57. {
  58. "name": "Run Tests",
  59. "type": "extensionHost",
  60. "request": "launch",
  61. "args": [
  62. "--profile-temp",
  63. "--extensionDevelopmentPath=${workspaceFolder}",
  64. "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
  65. ],
  66. "outFiles": ["${workspaceFolder}/out/test/**/*.js", "${workspaceFolder}/dist/**/*.js"],
  67. "presentation": {
  68. "group": "2_run_tests",
  69. "order": 2
  70. },
  71. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  72. "smartStep": true,
  73. "sourceMapRenames": true,
  74. "sourceMaps": true
  75. },
  76. {
  77. "name": "Watch & Run",
  78. "type": "extensionHost",
  79. "request": "launch",
  80. "runtimeExecutable": "${execPath}",
  81. "args": ["--profile=Debugging (GitLens)", "--extensionDevelopmentPath=${workspaceFolder}"],
  82. "debugWebviews": true,
  83. "rendererDebugOptions": {
  84. "pauseForSourceMap": true,
  85. "sourceMapRenames": true,
  86. "sourceMaps": true,
  87. // "urlFilter": "*eamodio.gitlens*",
  88. "webRoot": "${workspaceFolder}/src/webviews/apps"
  89. },
  90. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  91. "pauseForSourceMap": true,
  92. "preLaunchTask": "${defaultBuildTask}",
  93. "presentation": {
  94. "group": "1_watch",
  95. "order": 1
  96. },
  97. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  98. "smartStep": true,
  99. "sourceMapRenames": true,
  100. "sourceMaps": true,
  101. "trace": true
  102. },
  103. {
  104. "name": "Watch & Run (web)",
  105. "type": "extensionHost",
  106. "request": "launch",
  107. "runtimeExecutable": "${execPath}",
  108. "args": [
  109. // "--folder-uri=vscode-vfs://github/gitkraken/vscode-gitlens",
  110. "--profile=Debugging (GitLens)",
  111. "--extensionDevelopmentPath=${workspaceFolder}",
  112. "--extensionDevelopmentKind=web"
  113. ],
  114. "debugWebWorkerHost": true,
  115. "rendererDebugOptions": {
  116. "pauseForSourceMap": true,
  117. "sourceMapRenames": true,
  118. "sourceMaps": true,
  119. "webRoot": "${workspaceFolder}/src/webviews/apps"
  120. },
  121. "outFiles": ["${workspaceFolder}/dist/browser/**/*.js"],
  122. "pauseForSourceMap": true,
  123. "preLaunchTask": "${defaultBuildTask}",
  124. "presentation": {
  125. "group": "1_watch",
  126. "order": 1
  127. },
  128. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  129. "smartStep": true,
  130. "sourceMapRenames": true,
  131. "sourceMaps": true,
  132. "trace": true
  133. },
  134. {
  135. "name": "Watch & Run (sandboxed)",
  136. "type": "extensionHost",
  137. "request": "launch",
  138. "runtimeExecutable": "${execPath}",
  139. "args": ["--profile-temp", "--extensionDevelopmentPath=${workspaceFolder}"],
  140. "debugWebviews": true,
  141. "rendererDebugOptions": {
  142. "pauseForSourceMap": true,
  143. "sourceMapRenames": true,
  144. "sourceMaps": true,
  145. // "urlFilter": "*eamodio.gitlens*",
  146. "webRoot": "${workspaceFolder}/src/webviews/apps"
  147. },
  148. "outFiles": ["${workspaceFolder}/dist/**/*.js"],
  149. "pauseForSourceMap": true,
  150. "preLaunchTask": "${defaultBuildTask}",
  151. "presentation": {
  152. "group": "1_watch",
  153. "order": 2
  154. },
  155. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  156. "smartStep": true,
  157. "sourceMapRenames": true,
  158. "sourceMaps": true,
  159. "trace": true
  160. },
  161. {
  162. "name": "Watch & Run Tests",
  163. "type": "extensionHost",
  164. "request": "launch",
  165. "args": [
  166. "--profile-temp",
  167. "--extensionDevelopmentPath=${workspaceFolder}",
  168. "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
  169. ],
  170. "outFiles": ["${workspaceFolder}/out/test/**/*.js", "${workspaceFolder}/dist/**/*.js"],
  171. "preLaunchTask": "npm: watch:tests",
  172. "presentation": {
  173. "group": "1_watch_tests",
  174. "order": 2
  175. },
  176. "skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
  177. "smartStep": true,
  178. "sourceMapRenames": true,
  179. "sourceMaps": true
  180. }
  181. ]
  182. }