Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"connor4312.esbuild-problem-matchers",
"ms-azuretools.vscode-azureresourcegroups"
]
}
84 changes: 8 additions & 76 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,115 +6,47 @@
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/**/*.{js,mjs,cjs}",
],
"preLaunchTask": "${defaultBuildTask}",
"preLaunchTask": "Watch: ESBuild",
"env": {
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": ""
}
},
{
"name": "Launch Extension(s)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentPath=${workspaceFolder}/../vscode-azureresourcegroups",
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/**/*.{js,mjs,cjs}",
],
"preLaunchTask": "${defaultBuildTask}",
"preLaunchTask": "Watch: ESBuild",
"env": {
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": ""
}
},
{
"name": "Launch Extension + Host (web)",
"type": "extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentPath=${workspaceFolder}/../vscode-azureresourcegroups",
"--extensionDevelopmentKind=web"
],
"env": {
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": ""
}
},
{
"name": "Launch Extension (webpack)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: webpack",
"env": {
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": "",
"DEBUG_WEBPACK": "1"
}
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/index",
"${workspaceFolder}/test/test.code-workspace"
],
"testConfiguration": "${workspaceFolder}/.vscode-test.mjs",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/**/*.{js,mjs,cjs}",
"${workspaceFolder}/test/**/*.{ts,mts,cts}", // We are using TSX so out files *are* the source files
],
Comment on lines 84 to 44
Copy link
Copy Markdown
Contributor Author

@bwateratmsft bwateratmsft Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: A third line needs to be added here in outFiles, just for the test launch config:

"${workspaceFolder}/src/**/*.{ts,mts,cts}",

"preLaunchTask": "${defaultBuildTask}",
"preLaunchTask": "Watch: ESBuild",
"env": {
"MOCHA_grep": "", // RegExp of tests to run (empty for all)
"MOCHA_timeout": "0", // Disable time-outs
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": "",
"AzCode_EnableLongRunningTestsLocal": ""
}
},
{
"name": "Launch Tests (webpack)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/dist/test/index",
"${workspaceFolder}/test/test.code-workspace"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: webpack",
"env": {
"MOCHA_grep": "", // RegExp of tests to run (empty for all)
"MOCHA_timeout": "0", // Disable time-outs
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": "",
"DEBUG_WEBPACK": "1",
"ENABLE_LONG_RUNNING_TESTS": ""
}
}
]
}
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@
".vscode-test": true,
"test/testProject": true
},
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules/typescript/lib"
}
41 changes: 31 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,43 @@
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"label": "Watch: ESBuild",
"type": "shell",
"command": "npm",
"args": [
"run",
"build:esbuild",
"--",
"--watch",
],
"problemMatcher": "$esbuild-watch",
"presentation": {
"reveal": "silent",
},
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
},
{
"label": "Watch: Check Types",
"type": "shell",
"command": "npm",
"args": [
"run",
"build:check",
"--",
"--watch",
],
"problemMatcher": "$tsc-watch",
"presentation": {
"reveal": "never"
"revealProblems": "onProblem",
},
"problemMatcher": "$tsc-watch"
"group": {
"kind": "build",
"isDefault": true,
},
"isBackground": true,
},
{
"type": "npm",
"script": "lint",
"problemMatcher": "$eslint-stylish"
}
]
}