12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- {
- "version": "0.2.0",
- "configurations": [
- {
- "name": "Extension",
- "type": "extensionHost",
- "request": "launch",
- "runtimeExecutable": "${exec:code}", // Or code-insiders for VS Code Insiders
- "args": [
- "--extensionDevelopmentPath=${workspaceFolder}" // Path to your extension's folder
- ],
- "outFiles": [
- "${workspaceFolder}/out" // Output directory for compiled code
- ]
-
- // Optional: If you have a separate test workspace:
- // "args": [
- // "--extensionDevelopmentPath=${workspaceFolder}",
- // "--extensionTestsPath=${workspaceFolder}/test", // Path to your tests
- // "--new-window", // Open a new VS Code window for testing
- // "--disable-extensions" // Optional: Disable other extensions during testing
- // ],
-
- // Optional: For debugging the extension in a specific workspace:
- // "env": {
- // "VSCODE_TEST_WORKSPACE": "${workspaceFolder}/test-workspace" // Path to your test workspace
- // }
-
- // Optional: To debug the extension in a new clean VS Code window:
- // "args": [
- // "--extensionDevelopmentPath=${workspaceFolder}",
- // "--new-window",
- // "--disable-extensions"
- // ]
- },
- {
- "name": "Extension Tests", // If you have tests
- "type": "extensionHost",
- "request": "launch",
- "runtimeExecutable": "${exec:code}", // Or code-insiders
- "args": [
- "--extensionDevelopmentPath=${workspaceFolder}",
- "--extensionTestsPath=${workspaceFolder}/out/test", // Path to your compiled tests
- "--new-window",
- "--disable-extensions" // Recommended for test isolation
- ],
- "outFiles": [
- "${workspaceFolder}/out/test" // Output directory for compiled tests
- ]
- }
- ]
- }
|