Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.18.1
22
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"
]
}
73 changes: 10 additions & 63 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,102 +6,49 @@
"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": ""
"DEBUGTELEMETRY": "v"
}
},
{
"name": "Launch Extension + Host",
"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 (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"
"DEBUGTELEMETRY": "v"
}
},
{
"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",
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

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

This launch config references ${workspaceFolder}/.vscode-test.mjs, but that file is not present in the repo. Add the missing test configuration file or update testConfiguration to point to the actual config so the "Launch Tests" profile works.

Suggested change
"testConfiguration": "${workspaceFolder}/.vscode-test.mjs",

Copilot uses AI. Check for mistakes.
"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": "",
"FUNC_PATH": "func",
"AZFUNC_UPDATE_BACKUP_TEMPLATES": "",
"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": "",
"FUNC_PATH": "func"
}
}
]
}
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@
"**/node_modules": true,
".vscode-test": true,
"resources/backup*Templates": 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"
}
]
}
8 changes: 8 additions & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { autoEsbuildOrWatch, autoSelectEsbuildConfig } from '@microsoft/vscode-azext-eng/esbuild';

await autoEsbuildOrWatch(autoSelectEsbuildConfig());
12 changes: 12 additions & 0 deletions eslint.config.mjs
Comment thread
bwateratmsft marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { azExtEslintRecommended } from '@microsoft/vscode-azext-eng/eslint';
import { defineConfig } from 'eslint/config';

export default defineConfig([
azExtEslintRecommended
]);

142 changes: 0 additions & 142 deletions gulpfile.ts

This file was deleted.

5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ let perfStats = {

Object.defineProperty(exports, "__esModule", { value: true });

const extension = require('./out/src/extension');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const extension = require("./dist/extension.bundle");

async function activate(ctx) {
return await extension.activateInternal(ctx, perfStats, true /* ignoreBundle */);
return await extension.activateInternal(ctx, perfStats);
}
Comment thread
bwateratmsft marked this conversation as resolved.

async function deactivate(ctx) {
Expand Down
Loading
Loading