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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.18.1
22
6 changes: 6 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/

export { azExtTestConfig as default } from '@microsoft/vscode-azext-eng/vscode-test'; // Other configurations exist
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());
49 changes: 49 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,49 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/

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

export default defineConfig([
{
ignores: ['test/**', 'webpack.config.js', '.eslintrc.js', 'scripts/**'],
},
...azExtEslintRecommended,
{
rules: {
'@typescript-eslint/no-namespace': 'off',
'no-useless-escape': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-case-declarations': 'off',
'no-template-curly-in-string': 'off', // Used for VS Code task variable substitution patterns
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase', 'PascalCase', 'snake_case', 'UPPER_CASE'],
leadingUnderscore: 'allow'
},
{
selector: 'objectLiteralProperty',
format: null,
filter: {
regex: '^(Content-Type|Cache-Control|x-functions-key|api-version)$',
match: true
}
},
]
}
},
]);
58 changes: 0 additions & 58 deletions extension.bundle.ts

This file was deleted.

Loading