diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a9572562e..304e7d875 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,7 @@ { "recommendations": [ "dbaeumer.vscode-eslint", + "connor4312.esbuild-problem-matchers", "ms-azuretools.vscode-azureresourcegroups" ] } diff --git a/.vscode/launch.json b/.vscode/launch.json index 94d3e167c..f8b8b1e52 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 ], - "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": "" - } - } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index b9526dba3..23fba49cf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,4 @@ ".vscode-test": true, "test/testProject": true }, - "typescript.preferences.importModuleSpecifier": "relative", - "typescript.tsdk": "node_modules/typescript/lib" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5c4125cd9..7ddcc1d43 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" - } ] }