diff --git a/.github/actions/package-lock.json b/.github/actions/package-lock.json index edac10ae8..2603a1d02 100644 --- a/.github/actions/package-lock.json +++ b/.github/actions/package-lock.json @@ -27,7 +27,6 @@ "chai": "^4.3.6", "eslint": "^10.10.0", "husky": "^8.0.1", - "mocha": "^10.0.0", "mongodb": "^4.17.0", "nock": "^13.2.9", "prettier": "2.7.1", @@ -1130,22 +1129,6 @@ "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8=", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@eslint/config-helpers": { "version": "0.7.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", @@ -1283,6 +1266,13 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz", + "integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", @@ -2717,22 +2707,6 @@ "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8=", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@typescript-eslint/utils": { "version": "8.56.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@typescript-eslint/utils/-/utils-8.56.1.tgz", @@ -2866,16 +2840,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha1-N2ETQOsiQ+cMxgTK011jJw1IeBs=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -2902,20 +2866,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha1-eQxYsZuhcgqEIFtXxhjVrYUklz4=", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/arg/-/arg-4.1.3.tgz", @@ -2923,13 +2873,6 @@ "dev": true, "license": "MIT" }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha1-JG9Q88p4oyQPbJl+ipvR6sSeSzg=", - "dev": true, - "license": "Python-2.0" - }, "node_modules/assertion-error": { "version": "1.1.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/assertion-error/-/assertion-error-1.1.0.tgz", @@ -2999,13 +2942,6 @@ "node": ">= 6" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4=", - "dev": true, - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/base64-js/-/base64-js-1.5.1.tgz", @@ -3033,19 +2969,6 @@ "integrity": "sha1-zxRHq5Fg32pA82Idpk1v/DYFDLk=", "license": "Apache-2.0" }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha1-9uFKl4WNMnJSIAJC1Mz+UixEVSI=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/bowser": { "version": "2.14.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bowser/-/bowser-2.14.1.tgz", @@ -3077,26 +3000,6 @@ "node": "18 || 20 || >=22" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/braces/-/braces-3.0.3.tgz", - "integrity": "sha1-SQMy9AkZRSJy1VqEgK3AxEE1h4k=", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha1-uqVZ7hTO1zRSIputcyZGfGH6vWA=", - "dev": true, - "license": "ISC" - }, "node_modules/bson": { "version": "4.7.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bson/-/bson-4.7.2.tgz", @@ -3162,19 +3065,6 @@ "node": ">= 0.4" } }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha1-VoW5XrIJrJwMF3Rnd4ychN9Yupo=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/chai": { "version": "4.5.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/chai/-/chai-4.5.0.tgz", @@ -3194,23 +3084,6 @@ "node": ">=4" } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/check-error": { "version": "1.0.3", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/check-error/-/check-error-1.0.3.tgz", @@ -3224,44 +3097,6 @@ "node": "*" } }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha1-GXxsxmnvKo3F57TZfuTgksPrDVs=", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha1-hpgyxYA0/mikCTwX3BXoNA2EAcQ=", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/cliui/-/cliui-8.0.1.tgz", @@ -3348,19 +3183,6 @@ } } }, - "node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha1-qkcte/Zg6xXzSU79UxyrfypwmDc=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/deep-eql": { "version": "4.1.4", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/deep-eql/-/deep-eql-4.1.4.tgz", @@ -3390,16 +3212,6 @@ "node": ">=0.4.0" } }, - "node_modules/diff": { - "version": "5.2.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/diff/-/diff-5.2.2.tgz", - "integrity": "sha1-CkdCeXKB0Jz6aZt56jLSdyNiO60=", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -3603,22 +3415,6 @@ "node": ">=4.0" } }, - "node_modules/eslint/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8=", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/espree": { "version": "11.2.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/espree/-/espree-11.2.0.tgz", @@ -3807,19 +3603,6 @@ "flat-cache": "^6.1.23" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha1-RCZdPKwH4+p9wkdRY4BkN1SgUpI=", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/find-up/-/find-up-5.0.0.tgz", @@ -3837,16 +3620,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/flat/-/flat-5.0.2.tgz", - "integrity": "sha1-jKb+MyBp/6nTJMMnGYxZglnOskE=", - "dev": true, - "license": "BSD-3-Clause", - "bin": { - "flat": "cli.js" - } - }, "node_modules/flat-cache": { "version": "6.1.23", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/flat-cache/-/flat-cache-6.1.23.tgz", @@ -3867,9 +3640,9 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.16.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/follow-redirects/-/follow-redirects-1.16.0.tgz", - "integrity": "sha1-KEdKFZ07nRHvYgUKFO1g5N9tYbw=", + "version": "1.16.2", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/follow-redirects/-/follow-redirects-1.16.2.tgz", + "integrity": "sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==", "funding": [ { "type": "individual", @@ -3903,27 +3676,6 @@ "node": ">= 0.12" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha1-ysZAd4XQNnWipeGlMFxpezR9kNY=", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/function-bind/-/function-bind-1.1.2.tgz", @@ -3990,26 +3742,6 @@ "node": ">= 0.4" } }, - "node_modules/glob": { - "version": "8.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/glob/-/glob-8.1.0.tgz", - "integrity": "sha1-04j2Vlk+9wjuPjRkD9+5mp/Rwz4=", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/glob-parent/-/glob-parent-6.0.2.tgz", @@ -4023,29 +3755,6 @@ "node": ">=10.13.0" } }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.1.7", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/brace-expansion/-/brace-expansion-2.1.7.tgz", - "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha1-EpPvFdsAmLOUVA6Pn3RPn9qN7ks=", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/gopd/-/gopd-1.2.0.tgz", @@ -4058,16 +3767,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/has-symbols/-/has-symbols-1.1.0.tgz", @@ -4120,16 +3819,6 @@ "node": ">= 0.4" } }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/he/-/he-1.2.0.tgz", - "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=", - "dev": true, - "license": "MIT", - "bin": { - "he": "bin/he" - } - }, "node_modules/hookified": { "version": "1.15.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/hookified/-/hookified-1.15.1.tgz", @@ -4222,47 +3911,16 @@ "node": ">=0.8.19" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=", - "dev": true, - "license": "ISC" - }, "node_modules/ip-address": { - "version": "10.7.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/ip-address/-/ip-address-10.7.2.tgz", - "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==", + "version": "10.7.4", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/ip-address/-/ip-address-10.7.4.tgz", + "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==", "dev": true, "license": "MIT", "engines": { "node": ">= 12" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/is-electron": { "version": "2.2.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-electron/-/is-electron-2.2.2.tgz", @@ -4302,26 +3960,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha1-ReQuN/zPH0Dajl927iFRWEDAkoc=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-stream/-/is-stream-1.1.0.tgz", @@ -4331,19 +3969,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha1-PybHaoCVk7Ur+i7LVxDtJ3m1Iqc=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/isexe/-/isexe-2.0.0.tgz", @@ -4351,29 +3976,6 @@ "dev": true, "license": "ISC" }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -4441,23 +4043,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha1-P727lbRoOsn8eFER55LlWNSr1QM=", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/loupe": { "version": "2.3.7", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/loupe/-/loupe-2.3.7.tgz", @@ -4513,110 +4098,21 @@ "node": ">= 0.6" } }, - "node_modules/mocha": { - "version": "10.8.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/mocha/-/mocha-10.8.2.tgz", - "integrity": "sha1-jYNC0BbtQRsSpCnrcxuCX5Ya+5Y=", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-colors": "^4.1.3", - "browser-stdout": "^1.3.1", - "chokidar": "^3.5.3", - "debug": "^4.3.5", - "diff": "^5.2.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^8.1.0", - "he": "^1.2.0", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^5.1.6", - "ms": "^2.1.3", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^6.5.1", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9", - "yargs-unparser": "^2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/mocha/node_modules/brace-expansion": { - "version": "2.1.7", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/brace-expansion/-/brace-expansion-2.1.7.tgz", - "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08=", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/mocha/node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha1-EpPvFdsAmLOUVA6Pn3RPn9qN7ks=", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha1-zW/BfihQDP9WwbhsCn/UpUpzAFw=", + "node_modules/minimatch": { + "version": "11.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-11.0.3.tgz", + "integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==", "dev": true, - "license": "MIT", + "license": "BlueOak-1.0.0", "dependencies": { - "has-flag": "^4.0.0" + "@isaacs/nonrecursive-glob-match": "^1.0.3", + "brace-expansion": "^5.0.12" }, "engines": { - "node": ">=10" + "node": "18 || 20 || >=22" }, "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/mocha/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha1-HIK/D2tqZur85+8w43b0mhJHf2Y=", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/mongodb": { @@ -4677,26 +4173,6 @@ "node": ">= 10.13" } }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/optionator/-/optionator-0.9.4.tgz", @@ -4849,19 +4325,6 @@ "node": "*" } }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha1-WpQpFeJrNy3A8OZ1MUmhbmscVgE=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -4937,19 +4400,6 @@ "dev": true, "license": "MIT" }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha1-dKNwvYVxFuJFspzJc0DNQxoCpsc=", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/require-directory/-/require-directory-2.1.1.tgz", @@ -5002,16 +4452,6 @@ "node": ">=10" } }, - "node_modules/serialize-javascript": { - "version": "7.0.5", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/serialize-javascript/-/serialize-javascript-7.0.5.tgz", - "integrity": "sha1-x5jMBVL/uwiYGRSkKodW4znQ1bE=", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=20.0.0" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/shebang-command/-/shebang-command-2.0.0.tgz", @@ -5100,19 +4540,6 @@ "node": ">=8" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha1-MfEoGzgyYwQ0gxwxDAHMzajL4AY=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/strnum": { "version": "2.3.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/strnum/-/strnum-2.3.0.tgz", @@ -5126,19 +4553,6 @@ ], "license": "MIT" }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -5187,19 +4601,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tr46": { "version": "3.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/tr46/-/tr46-3.0.0.tgz", @@ -5334,9 +4735,9 @@ } }, "node_modules/undici": { - "version": "6.29.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/undici/-/undici-6.29.0.tgz", - "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==", + "version": "6.29.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", "license": "MIT", "engines": { "node": ">=18.17" @@ -5434,13 +4835,6 @@ "node": ">=0.10.0" } }, - "node_modules/workerpool": { - "version": "6.5.1", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha1-Bg9zs50Mr5fG22TaAEzQG0wJlUQ=", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -5459,13 +4853,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true, - "license": "ISC" - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/y18n/-/y18n-5.0.8.tgz", @@ -5496,32 +4883,6 @@ } }, "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha1-LrfcOwKJcY/ClfNidThFxBoMlO4=", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha1-8TH5ImkRrl2a04xDL+gJNmwjJes=", - "dev": true, - "license": "MIT", - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha1-kJa87r+ZDSG7MfqVFuDt4pSnfTU=", diff --git a/.github/actions/package.json b/.github/actions/package.json index 94f0ff644..4f72292f5 100644 --- a/.github/actions/package.json +++ b/.github/actions/package.json @@ -31,7 +31,6 @@ "chai": "^4.3.6", "eslint": "^10.10.0", "husky": "^8.0.1", - "mocha": "^10.0.0", "mongodb": "^4.17.0", "nock": "^13.2.9", "prettier": "2.7.1", @@ -40,6 +39,14 @@ "yargs": "^17.5.1" }, "overrides": { - "serialize-javascript": "^7.0.5" + "@eslint/config-array": { + "minimatch": "11.0.3" + }, + "@typescript-eslint/typescript-estree": { + "minimatch": "11.0.3" + }, + "eslint": { + "minimatch": "11.0.3" + } } } diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 001fffeae..6c343ef69 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -63,7 +63,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 + uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -91,7 +91,7 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 + uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: category: "/language:${{matrix.language}}" diff --git a/Extension/.vscodeignore b/Extension/.vscodeignore index 59e8dac79..7299caea2 100644 --- a/Extension/.vscodeignore +++ b/Extension/.vscodeignore @@ -32,6 +32,7 @@ cgmanifest.json eslint.config.js .gitattributes .gitignore +.yarn-bootstrap/** gulpfile.js localized_string_ids.h readme.developer.md diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index bca4e5201..e81081eab 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -1,136 +1,118 @@ # C/C++ for Visual Studio Code Changelog -## Version 1.35.5: October 27, 2026 -### Bug Fixes -* Fix false IntelliSense errors after rapidly replacing a file with a code snippet. [#14807](https://github.com/microsoft/vscode-cpptools/issues/14807) -* Fix false IntelliSense redeclaration errors for class template deduction guides. [#14824](https://github.com/microsoft/vscode-cpptools/issues/14824) -* Fix incorrect IntelliSense types after including `stdatomic.h` with MSVC C11 atomics enabled. [#14825](https://github.com/microsoft/vscode-cpptools/issues/14825) -* Make parameter-name inlay hint suppression case-insensitive. [#14829](https://github.com/microsoft/vscode-cpptools/issues/14829) -* Fix workspace symbol navigation using resolved paths instead of symlinked workspace paths, and preserve path casing. -* Fix Doxygen commands inside literal and diagram blocks being misinterpreted as documentation tags. -* Fix an IntelliSense crash when processing macro arguments in member-function declarations. -* Fix workspace indexing for C11 atomics and other valid C language tokens. -* Fix a language server crash when browse database initialization fails. -* Various localization updates. - -## Version 1.35.4: October 14, 2026 +## Version 1.36.0: November 19, 2026 ### New Features -* Add the opt-in `C_Cpp.hoverShowIntegralValuesInHexadecimal` setting to display integral constants in hexadecimal in IntelliSense hovers. [#7281](https://github.com/microsoft/vscode-cpptools/issues/7281) -* Add the opt-in `C_Cpp.codeAnalysis.clangTidy.includeCleanerMappings` setting to map `misc-include-cleaner` symbols to public headers. [PR #14788](https://github.com/microsoft/vscode-cpptools/pull/14788) -* Dim unused `#include` directives when `editor.showUnused` is enabled, respecting per-file Include Cleanup preferences from `.editorconfig` files. [PR #14808](https://github.com/microsoft/vscode-cpptools/pull/14808) +* Add 'Type Hierarchy' support for C++ classes and structs. [#3799](https://github.com/microsoft/vscode-cpptools/issues/3799) +* Add 'Go to Implementation' support for finding derived C++ classes and structs. [#3941](https://github.com/microsoft/vscode-cpptools/issues/3941) -### Enhancements -* Add the `C_Cpp.hoverShowTypeSizeAndAlignment` setting and 'Toggle Type Size and Alignment in Hovers' command to hide or show type size and alignment in IntelliSense hovers. [#14820](https://github.com/microsoft/vscode-cpptools/issues/14820) -* Improve IntelliSense responsiveness in multi-root workspaces that use independent `compile_commands.json` databases. -* Improve processing performance for long multiline documentation comments. - -### Bug Fixes -* Fix incorrect IntelliSense constructibility results and diagnostics for inherited constructors with unusable base constructors or destructors and abstract classes with virtual bases. -* Fix IntelliSense crashes involving precompiled headers, `constexpr` evaluation, C++20 `requires` expressions, SFINAE, and incomplete nested class declarations. -* Fix false IntelliSense errors for nested C++20 `requires` expressions and fold-expression constraints in MSVC module templates. -* Fix stale IntelliSense diagnostics and inconsistent document snapshots during concurrent edits and requests. -* Fix tag parsing of user-defined literal operator suffixes when macro expansion is involved. -* Fix completion for declarations imported from standard-library modules when using MSVC. -* Fix 'Create Declaration/Definition' matching for functions in the global namespace. -* Fix IntelliSense lookup for scoped enumerations defined inside class templates. -* Fix inconsistent fuzzy completion matching caused by reused candidate buffers. -* Fix IntelliSense language-standard detection for MSVC `/std:c++23`. -* Fix a potential data race in include-path resolution. +### Enhancement +* Reduce unnecessary browse database rescans when unrelated files are created. + +### Bug Fixes +* Fix function hovers showing a macro's documentation instead of the function's documentation. [#14744](https://github.com/microsoft/vscode-cpptools/issues/14744) +* Respect `files.exclude` when enumerating directories in the workspace. [#14827](https://github.com/microsoft/vscode-cpptools/issues/14827) +* Fix false IntelliSense redefinition errors for C23 `struct` and `union` declarations. [#14839](https://github.com/microsoft/vscode-cpptools/issues/14839) +* Update the minimum supported VS Code version to 1.82. [PR #14850](https://github.com/microsoft/vscode-cpptools/pull/14850) +* Exclude the development-only `.yarn-bootstrap` directory from the extension package. [#14854](https://github.com/microsoft/vscode-cpptools/issues/14854) +* Fix incomplete unreachable-code dimming around loops. [#14855](https://github.com/microsoft/vscode-cpptools/issues/14855) +* Default unused-include suggestions to `none` and honor per-file `.editorconfig` diagnostic levels. [PR #14858](https://github.com/microsoft/vscode-cpptools/pull/14858) +* Fix false unused-include diagnostics for `` and ``. [#14861](https://github.com/microsoft/vscode-cpptools/issues/14861) +* Fix 'Go to Definition' on `#include` directives resolved through recursive include paths. [#14868](https://github.com/microsoft/vscode-cpptools/issues/14868) +* Fix `clang-cl` compiler detection when compile-only options and warnings-as-errors are used. [#14875](https://github.com/microsoft/vscode-cpptools/issues/14875) +* Fix IntelliSense crashes when hovering macro arguments, parsing macro definitions, or analyzing deduction guides with `noexcept`. +* Fix IntelliSense handling of C11 and later character types when using MSVC 19.44 or later. +* Fix unused-include attribution for dependent function calls with mismatched arguments. +* Fix IntelliSense substitution of indirectly read constant template arguments. +* Fix IntelliSense decay of cv- and ref-qualified function types in Clang mode. +* Fix an IntelliSense hang when analyzing recursive template conversions. +* Fix member completion for Unicode prefixes. * Various localization updates. * Update dependencies. -## Version 1.35.3: October 2, 2026 +## Version 1.35.6: November 2, 2026 ### New Features +* Add the opt-in `C_Cpp.hoverShowIntegralValuesInHexadecimal` setting to display integral constants in hexadecimal in IntelliSense hovers. [#7281](https://github.com/microsoft/vscode-cpptools/issues/7281) * Add 'Fold All Inactive Regions' and 'Unfold All Inactive Regions' commands and the opt-in `C_Cpp.autoFoldInactiveRegions` setting. [#8992](https://github.com/microsoft/vscode-cpptools/issues/8992) -* Dim unreachable code when `editor.showUnused` is enabled. [#12902](https://github.com/microsoft/vscode-cpptools/issues/12902) -* Show C++ type size and alignment in hovers. [#13034](https://github.com/microsoft/vscode-cpptools/issues/13034) - -### Enhancements -* Increase the per-file IntelliSense diagnostic limit from 250 to 1,000, prioritize errors over unused-code hints, and reduce processing of over-limit diagnostics. -* Improve IntelliSense performance in large include graphs and classes with many inherited constructors. -* Reduce custom-configuration processing overhead and memory retained from `compile_commands.json`. -* Improve code folding performance in files with many inactive preprocessor regions. -* Improve loading performance for Windows-1255 and Windows-1258 source files. -* Reduce CPU usage when resolving headers in large Windows workspaces. - -### Bug Fixes -* Fix 'Go to Declaration' and 'Go to Definition' returning the current location instead of an available counterpart. [#14509](https://github.com/microsoft/vscode-cpptools/issues/14509) -* Update MIEngine to fix debugger failures with synthetic GDB stack frames. [#14741](https://github.com/microsoft/vscode-cpptools/issues/14741) - * Thanks for the contribution. [@tzcnt](https://github.com/tzcnt) [PR MIEngine#1605](https://github.com/microsoft/MIEngine/pull/1605) -* Fix incorrect IntelliSense errors for alias-template deduction guides using C++26 pack indexing. [#14794](https://github.com/microsoft/vscode-cpptools/issues/14794) -* Fix incorrect unused-parameter warnings and dimming for assignments through reference parameters. [#14801](https://github.com/microsoft/vscode-cpptools/issues/14801) -* Fix missing IntelliSense headers with Clang `-cxx-isystem` and `-stdlib++-isystem` options and split clang-cl `-imsvc` and `/imsvc` arguments. -* Fix IntelliSense crashes involving deduction guides, user-defined conversions, and lambdas in macros. -* Fix IntelliSense handling of GCC `--embed-directory=` and `--embed-directory ` arguments. -* Fix a tag parser stack-overflow crash when loading cyclic or excessively deep cached symbol data. -* Fix unwanted completion popups when typing incomplete floating-point exponents. -* Fix configuration-provider requests delaying language server shutdown. -* Various localization updates. -* Update dependencies. - -## Version 1.35.2: September 22, 2026 -### New Feature * Dim unused local variables and parameters when `editor.showUnused` is enabled. [#10490](https://github.com/microsoft/vscode-cpptools/issues/10490) +* Dim unreachable code when `editor.showUnused` is enabled. [#12902](https://github.com/microsoft/vscode-cpptools/issues/12902) +* Show C++ type size and alignment in hovers, with the `C_Cpp.hoverShowTypeSizeAndAlignment` setting and 'Toggle Type Size and Alignment in Hovers' command to control them. [#13034](https://github.com/microsoft/vscode-cpptools/issues/13034), [#14820](https://github.com/microsoft/vscode-cpptools/issues/14820) +* Add the 'Select a Translation Unit...' command to choose which source file provides IntelliSense context for the active header file. [PR #14688](https://github.com/microsoft/vscode-cpptools/pull/14688) +* Add the opt-in `C_Cpp.codeAnalysis.clangTidy.includeCleanerMappings` setting to map `misc-include-cleaner` symbols to public headers. [PR #14788](https://github.com/microsoft/vscode-cpptools/pull/14788) +* Dim unused `#include` directives when `editor.showUnused` is enabled, respecting per-file Include Cleanup preferences from `.editorconfig` files. [PR #14808](https://github.com/microsoft/vscode-cpptools/pull/14808) ### Enhancements * Add support for formatting multiple selections with `clang-format` and `vcFormat`. [#12082](https://github.com/microsoft/vscode-cpptools/issues/12082) +* Improve IntelliSense responsiveness in multi-root workspaces that use independent `compile_commands.json` databases. +* Increase the per-file IntelliSense diagnostic limit from 250 to 1,000 and prioritize errors over unused-code hints. +* Improve IntelliSense configuration lookup performance for symbolic links to `compile_commands.json`. * Reduce language server memory usage in workspaces with many interconnected symbolic links. -* Improve responsiveness when deleting source files associated with many open headers. -* Improve `#include` completion performance in workspaces with many open files. +* Reduce custom-configuration processing overhead in workspaces with many requested files. +* Improve workspace indexing performance by reducing repeated language-mode processing. +* Improve code folding performance in files with many inactive preprocessor regions. +* Update the bundled `clang-tidy` and `clang-format` from 23.1.0 to 23.1.1. +* Reduce CPU usage when resolving headers in large Windows workspaces. +* Improve performance when pruning large IntelliSense caches. ### Bug Fixes +* Fix `/U` and `-U` compiler arguments not undefining macros for IntelliSense and code analysis. [#13786](https://github.com/microsoft/vscode-cpptools/issues/13786) * Fix IntelliSense handling of MSVC and clang-cl external include paths and environment variables. [#14186](https://github.com/microsoft/vscode-cpptools/issues/14186), [#14205](https://github.com/microsoft/vscode-cpptools/issues/14205) * Fix missing IntelliSense definitions for additional MSVC predefined macros. [#14312](https://github.com/microsoft/vscode-cpptools/issues/14312) +* Fix 'Go to Declaration' and 'Go to Definition' returning the current location instead of an available counterpart. [#14509](https://github.com/microsoft/vscode-cpptools/issues/14509) * Fix lost indentation in displayed documentation comments. [#14567](https://github.com/microsoft/vscode-cpptools/issues/14567) * Fix compiler queries failing to find dependencies installed alongside the compiler on Linux and macOS. [#14575](https://github.com/microsoft/vscode-cpptools/issues/14575) +* Fix false IntelliSense errors when initializing a variable with a value from the same unnamed enum. [#14726](https://github.com/microsoft/vscode-cpptools/issues/14726) +* Update MIEngine to fix debugger failures with synthetic GDB stack frames. [#14741](https://github.com/microsoft/vscode-cpptools/issues/14741) + * Thanks for the contribution. [@tzcnt](https://github.com/tzcnt) [PR MIEngine#1605](https://github.com/microsoft/MIEngine/pull/1605) * Fix an incorrect `class has more than one default constructor` IntelliSense error. [#14746](https://github.com/microsoft/vscode-cpptools/issues/14746) -* Fix the extension failing to start on Linux ARM64 because `libc.so` is not executable. [#14779](https://github.com/microsoft/vscode-cpptools/issues/14779) +* Fix excessive CPU usage by idle parser workers while workspace parsing is still running. [#14757](https://github.com/microsoft/vscode-cpptools/issues/14757) +* Remove the obsolete `C_Cpp.default.recursiveIncludes.reduce` setting and its configuration UI control. [PR #14761](https://github.com/microsoft/vscode-cpptools/pull/14761) +* Fix incorrect IntelliSense errors for alias-template deduction guides using C++26 pack indexing. [#14794](https://github.com/microsoft/vscode-cpptools/issues/14794) +* Fix false IntelliSense errors after rapidly replacing a file with a code snippet. [#14807](https://github.com/microsoft/vscode-cpptools/issues/14807) +* Fix false IntelliSense redeclaration errors for class template deduction guides. [#14824](https://github.com/microsoft/vscode-cpptools/issues/14824) +* Fix incorrect IntelliSense types after including `stdatomic.h` with MSVC C11 atomics enabled. [#14825](https://github.com/microsoft/vscode-cpptools/issues/14825) +* Make parameter-name inlay hint suppression case-insensitive. [#14829](https://github.com/microsoft/vscode-cpptools/issues/14829) +* Fix incorrect IntelliSense constructibility results and diagnostics for inherited constructors with unusable base constructors or destructors and abstract classes with virtual bases. +* Fix missing or stale IntelliSense configurations when `compile_commands.json` files are created, changed, or deleted, or when database or source paths use symbolic links. +* Fix IntelliSense crashes involving precompiled headers, `constexpr` evaluation, C++20 `requires` expressions, templates, user-defined conversions, and lambdas in macros. +* Fix missing related headers in Copilot context when headers are also included through precompiled headers, forced includes, or earlier includes. +* Fix missing IntelliSense headers with Clang `-cxx-isystem` and `-stdlib++-isystem` options and split clang-cl `-imsvc` and `/imsvc` arguments. * Fix incorrect or missing `#include` completion suggestions for nonrecursive paths, frameworks, symbolic links, and extensionless files. -* Fix `compile_commands.json` handling for symlinked sources, missing working-directory fields, and invalid database roots. +* Fix missing `cp1125` support on all platforms, unsupported file encodings on Linux, and incorrect GB18030 decoding on Linux and macOS. +* Fix false IntelliSense errors for nested C++20 `requires` expressions and fold-expression constraints in MSVC module templates. +* Fix missing or incorrect recursive header lookup with duplicate include roots, multiple symbolic links, or `..` paths. +* Fix workspace symbol navigation using resolved paths instead of symlinked workspace paths, and preserve path casing. +* Fix a potential language server deadlock during workspace initialization and a data race in include-path resolution. * Fix stale 'Create Declaration/Definition' diagnostics after cancellation and reduce redundant diagnostic updates. * Fix missing IntelliSense errors for duplicate local variables, including redeclarations of function parameters. +* Fix stale IntelliSense diagnostics and inconsistent document snapshots during concurrent edits and requests. +* Fix a language server stack-overflow crash when loading cyclic or excessively deep browse database data. +* Fix `compile_commands.json` handling for missing working-directory fields and invalid database roots. +* Fix 'Create Declaration/Definition' incorrectly being offered for explicit template instantiations. +* Fix the workspace parsing status briefly reporting completion while a newer parse is still running. +* Fix IntelliSense handling of GCC `--embed-directory=` and `--embed-directory ` arguments. +* Fix Doxygen commands inside literal and diagram blocks being misinterpreted as documentation tags. * Fix a language server crash when requesting `#include` completion with certain Unicode prefixes. * Fix incorrect undefined-identifier IntelliSense errors for macros using `__COUNTER__` in C++20. -* Fix recursive header lookup with duplicate include roots or `..` paths through symbolic links. +* Fix tag parsing of user-defined literal operator suffixes when macro expansion is involved. * Fix incorrect EUC-JP and GBK source decoding when multibyte characters span read buffers. +* Fix delayed error reporting when a language server worker cannot start on Linux or macOS. +* Fix a language server crash when cleaning up after browse database initialization fails. +* Fix completion for declarations imported from standard-library modules when using MSVC. * Fix IntelliSense using strict language modes instead of Clang's default GNU dialect. * Fix header lookup for long Windows paths when Windows long-path support is enabled. +* Fix 'Create Declaration/Definition' matching for functions in the global namespace. +* Fix IntelliSense lookup for scoped enumerations defined inside class templates. +* Fix unwanted completion popups when typing incomplete floating-point exponents. +* Fix inconsistent fuzzy completion matching caused by reused candidate buffers. +* Fix workspace indexing for C11 atomics and other valid C language tokens. * Fix a Windows tag parser crash when a worker thread cannot be created. +* Fix configuration-provider requests delaying language server shutdown. * Fix intermittent incorrect compiler architecture detection on Linux. -* Various localization updates. -* Update dependencies. - -## Version 1.35.1: September 14, 2026 -### New Feature -* Add the 'Select a Translation Unit...' command to choose which source file provides IntelliSense context for the active header file. [PR #14688](https://github.com/microsoft/vscode-cpptools/pull/14688) - -### Enhancements -* Improve IntelliSense configuration lookup performance for symbolic links to `compile_commands.json`. -* Update the bundled `clang-tidy` and `clang-format` from 23.1.0 to 23.1.1. -* Improve performance when pruning large IntelliSense caches. - -### Bug Fixes -* Fix `/U` and `-U` compiler arguments not undefining macros for IntelliSense and code analysis. [#13786](https://github.com/microsoft/vscode-cpptools/issues/13786) -* Fix excessive CPU usage by idle parser workers while workspace parsing is still running. [#14757](https://github.com/microsoft/vscode-cpptools/issues/14757) -* Remove the obsolete `C_Cpp.default.recursiveIncludes.reduce` setting and its configuration UI control. [PR #14761](https://github.com/microsoft/vscode-cpptools/pull/14761) -* Fix missing or stale IntelliSense configurations when `compile_commands.json` is created after startup, changed, deleted, or accessed through symbolic links, including in multi-root workspaces. -* Fix missing `cp1125` support on all platforms, unsupported file encodings on Linux, and incorrect GB18030 decoding on Linux and macOS. -* Fix recursive include lookup sometimes selecting the wrong header when directories are reached through multiple symbolic links. -* Fix a potential language server deadlock during workspace initialization and concurrent document edits. -* Fix an IntelliSense crash when parsing templates in Clang mode. +* Fix a tag parser hang when its symbol database fails to initialize. +* Fix IntelliSense language-standard detection for MSVC `/std:c++23`. * Fix a `cpptools` crash during shutdown on macOS. -* Update dependencies. - -## Version 1.35.0: September 10, 2026 -### Enhancement -* Improve workspace indexing performance. - -### Bug Fixes -* Fix false IntelliSense errors when initializing a variable with a value from the same unnamed enum. [#14726](https://github.com/microsoft/vscode-cpptools/issues/14726) -* Fix the workspace parsing status briefly reporting completion while a newer parse is still running. -* Fix 'Create Declaration/Definition' incorrectly being offered for explicit template instantiations. -* Fix tag parser hangs when database initialization fails or shutdown interrupts a pending request. * Various localization updates. +* Update dependencies. ## Version 1.34.4: September 9, 2026 ### Enhancements diff --git a/Extension/bin/messages/cs/messages.json b/Extension/bin/messages/cs/messages.json index e207091f9..648f44390 100644 --- a/Extension/bin/messages/cs/messages.json +++ b/Extension/bin/messages/cs/messages.json @@ -2713,11 +2713,11 @@ "Nepovedlo se inicializovat metadata.", "Neplatné přetypování mezi základní a odvozenou třídou (skutečný typ odvozené třídy je %t)", "Neplatný přístup k %n v objektu s úplným typem %t.", - "%sq not allowed here", - "%sq does not permit multiple declarators", - "initialization with \"{...}\" is not allowed for %sq", + "%sq tady nesmí být", + "%sq nepovoluje několik deklarátorů", + "Inicializace pomocí „{...}“ není pro %sq povolena", "%sq musí být zástupný symbol pro úplný typ proměnné (ne pro komponentu tohoto typu).", - "a variable declared with %sq requires an initializer", + "Proměnná, která je deklarovaná pomocí %sq, musí mít inicializátor", "Konstanta typu integer musí být větší nebo rovná nule.", "Typ musí být integrální typ.", "Výraz se nedá interpretovat.", @@ -3750,7 +3750,7 @@ "Zkrácená syntaxe šablony funkce není standardní pro vodítka dedukce", "explicitní parametry „this“ jsou funkcí C++23", "specifikátory pole se v kontextech dedukce šablony nepodporují", - "the second argument must be an integer type with the same shape (a scalar or vector type) as the first argument", + "druhý argument musí být celočíselného typu se stejným tvarem (skalárního nebo vektorového typu) jako první argument", "argument musí být vektorem logických typů", "argument musí být ukazatel na skalární typ", "nesprávný typ argumentu (měl by být %t)", @@ -3783,20 +3783,20 @@ "Typ není podobný jazyku C kvůli tomuto lambda výrazu", "Kvalifikátor názvu výčtového typu je funkce jazyka C++11", "Neomezené sjednocení je funkce jazyka C++11", - "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", - "the range passed to the metafunction cannot be iterated", - "interpreter:", + "rozšíření balíčku nelze použít jako argument pro nebalíčkový %n1 z %n2", + "rozsah předaný metafunkci nelze iterovat", + "interpretátor:", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "volání „__builtin_constexpr_diag“ vyžaduje tři argumenty", + "První argument ve volání „__builtin_constexpr_diag“ musí být 0 (poznámka), 1 (upozornění), 2 (chyba), 16 (poznámka v místě volání), 17 (upozornění v místě volání) nebo 18 (chyba v místě volání).", + "pro značku a zprávu ve volání „__builtin_constexpr_diag“ je vyžadován řetězcový literál nebo objekt s reprezentací std::string_view", + "Značka ve volání __builtin_constexpr_diag může obsahovat jenom písmena, číslice a podtržítka.", "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", - "%sq does not spell an identifier", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "sekvenci tokenů musí uvádět „^^“", + "očekával se interpolátor („\\[“, „\\[:“, „\\{“, „\\val“ nebo „\\str“)", + "%sq nepředstavuje identifikátor", + "operand interpolátoru „\\{...}“ není sekvence tokenů", "Tato deklarace %n nedeklaruje stejný typ jako deklarace %p" ] diff --git a/Extension/bin/messages/de/messages.json b/Extension/bin/messages/de/messages.json index ebfb0abb9..c2bbe6cb9 100644 --- a/Extension/bin/messages/de/messages.json +++ b/Extension/bin/messages/de/messages.json @@ -1695,8 +1695,8 @@ null, "Für die Vektoroperation sind identische Elementtypen erforderlich.", "Die Vektoroperation gilt nicht für Vektoren mit nicht integralem Typ.", - "Die Datei %s kann nicht geöffnet werden: %sq2.", - "Die -Datei %s kann nicht geöffnet werden: %sq2: %s3.", + "Die %s-Datei %sq2 kann nicht geöffnet werden.", + "Die %s-Datei %sq2 kann nicht geöffnet werden: %s3.", "Vorkompilierte Headerdatei", "Vordefiniertes Makro", "Generierter C-Code", @@ -2715,7 +2715,7 @@ "Ungültiger Zugriff auf %n im Objekt des vollständigen Typs %t.", "%sq ist hier nicht zulässig.", "%sq erlaubt nicht mehrere Deklaratoren.", - "initialization with \"{...}\" is not allowed for %sq", + "Die Initialisierung mit „{...}“ ist für %sq nicht zulässig.", "%sq muss ein Platzhalter für den vollständigen Typ der Variablen sein (nicht für eine Komponente dieses Typs).", "Für eine mit %sq deklarierte Variable ist ein Initialisierer erforderlich.", "Die Integerkonstante muss größer oder gleich NULL sein.", @@ -3789,14 +3789,14 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "Ein Aufruf von „__builtin_constexpr_diag“ erfordert drei Argumente.", + "Das erste Argument in einem Aufruf von \"__builtin_constexpr_diag\" muss 0 (Anmerkung), 1 (Warnung), 2 (Fehler), 16 (Anmerkung bei Aufrufer), 17 (Warnung bei Aufrufer) oder 18 (Fehler bei Aufrufer) sein.", + "Für das Tag und die Nachricht in einem Aufruf von „__builtin_constexpr_diag“ ist ein Zeichenfolgenliteral oder ein Objekt mit der Darstellung von „std::string_view“ erforderlich.", + "Das Tag in einem Aufruf von \"__builtin_constexpr_diag\" darf nur Buchstaben, Ziffern und Unterstriche enthalten.", "Ungültiges Tag in der „constexpr“-Diagnosesteuerungsoption: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "Eine Tokensequenz muss mit „^^“ eingeleitet werden.", + "Es wurde ein Interpolator erwartet ('\\[', '\\[:', '\\{', '\\val' oder '\\str')", "%sq ist kein Bezeichner", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "Der Operand eines „\\{...}“-Interpolators ist keine Tokensequenz.", "Diese Deklaration von %n deklariert nicht denselben Typ wie die Deklaration %p." ] diff --git a/Extension/bin/messages/es/messages.json b/Extension/bin/messages/es/messages.json index 7aedebde0..04a1140ba 100644 --- a/Extension/bin/messages/es/messages.json +++ b/Extension/bin/messages/es/messages.json @@ -2715,7 +2715,7 @@ "acceso a %n no válido en un objeto del tipo %t completo", "%sq no se permite aquí", "%sq no permite varios declaradores", - "initialization with \"{...}\" is not allowed for %sq", + "no se permite la inicialización con '{...}' para %sq", "%sq debe ser un marcador de posición para el tipo completo de la variable (no para un componente de ese tipo)", "una variable declarada con %sq requiere un inicializador", "la constante de tipo entero debe ser mayor o igual que cero", @@ -3783,20 +3783,20 @@ "el tipo no es similar a C debido a esta expresión lambda", "un calificador de nombre de tipo de enumeración es una característica de C++11", "las uniones sin restricciones son una característica de C++11", - "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", + "no se puede usar una expansión de paquete como argumento para el parámetro %n1, que no es un paquete, de %n2", "el intervalo pasado a la metafunción no se puede iterar", "intérprete:", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "una llamada a \"__builtin_constexpr_diag\" requiere tres argumentos", + "el primer argumento de una llamada a \"__builtin_constexpr_diag\" debe ser 0 (nota), 1 (advertencia), 2 (error), 16 (nota en el llamador), 17 (advertencia en el llamador) o 18 (error en el llamador)", + "se necesita un literal de cadena o un objeto con la representación de std::string_view para la etiqueta y el mensaje de una llamada a \"__builtin_constexpr_diag\"", + "la etiqueta de una llamada a \"__builtin_constexpr_diag\" solo puede contener letras, dígitos y caracteres de subrayado", "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "una secuencia de tokens debe comenzar por '^^'", + "se esperaba un interpolador ('\\[', '\\[:', '\\{', '\\val' o '\\str')", "%sq no escribe un identificador", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "el operando de un interpolador '\\{...}' no es una secuencia de tokens", "esta declaración de %n no declara el mismo tipo que la declaración %p" ] diff --git a/Extension/bin/messages/fr/messages.json b/Extension/bin/messages/fr/messages.json index 8fc9d961c..18c062bd4 100644 --- a/Extension/bin/messages/fr/messages.json +++ b/Extension/bin/messages/fr/messages.json @@ -2713,11 +2713,11 @@ "échec de l'initialisation des métadonnées", "conversion de base vers dérivée non valide (le type réel de la classe dérivée est %t)", "accès non valide à %n dans l'objet de type complet %t", - "%sq not allowed here", - "%sq does not permit multiple declarators", - "initialization with \"{...}\" is not allowed for %sq", + "%sq non autorisé ici", + "%sq n’autorise pas plusieurs déclarateurs", + "l’initialisation avec '{...}' n’est pas autorisée pour %sq", "%sq doit être un espace réservé pour le type complet de la variable (et non pour un composant de ce type)", - "a variable declared with %sq requires an initializer", + "une variable déclarée avec %sq nécessite un initialiseur", "une constante entière doit être supérieure ou égale à zéro", "le type doit être un type intégral", "impossible d'interpréter l'expression", @@ -3750,7 +3750,7 @@ "la syntaxe abrégée du modèle de fonction n’est pas standard pour les guides de déduction", "les paramètres explicites « this » sont une fonctionnalité de C++23", "les désignateurs de tableau ne sont pas pris en charge dans les contextes de déduction de modèle", - "the second argument must be an integer type with the same shape (a scalar or vector type) as the first argument", + "le deuxième argument doit être de type entier et avoir la même forme (type scalaire ou vectoriel) que le premier argument", "l’argument doit être un vecteur de types booléens", "l’argument doit être un pointeur vers un type scalaire", "type d’argument incorrect (il doit s’agir de %t)", @@ -3783,20 +3783,20 @@ "le type n’est pas similaire à C en raison de cette expression lambda", "un qualificateur de nom de type énumération est une fonctionnalité C++11", "les unions sans restriction sont une fonctionnalité C++11", - "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", - "the range passed to the metafunction cannot be iterated", - "interpreter:", + "une expansion de pack ne peut pas être utilisée comme argument pour le paramètre %n1 (qui n’est pas un pack) de %n2", + "la plage transmise à la métafonction ne peut pas être parcourue", + "interpréteur :", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", + "un appel à « __builtin_constexpr_diag » nécessite trois arguments", + "Le premier argument dans un appel à '__builtin_constexpr_diag' doit être 0 (remarque), 1 (avertissement), 2 (erreur), 16 (remarque au niveau de l’appelant), 17 (avertissement au niveau de l’appelant) ou 18 (erreur au niveau de l’appelant)", "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "l’étiquette dans un appel à « __builtin_constexpr_diag » peut uniquement contenir des lettres, des chiffres et des traits de soulignement", "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", - "%sq does not spell an identifier", - "the operand of a \"\\{...}\" interpolator is not a token sequence", - "this declaration of %n does not declare the same type as the declaration %p" + "une séquence de jetons doit commencer par « ^^ »", + "interpolateur attendu (« \\[ », « \\[: », « \\{ », « \\val » ou « \\str »)", + "%sq ne forme pas un identifiant", + "l’opérande de l’interpolateur « \\{...} » n’est pas une séquence de jetons", + "cette déclaration de %n ne déclare pas le même type que la déclaration %p" ] diff --git a/Extension/bin/messages/it/messages.json b/Extension/bin/messages/it/messages.json index bcffbda92..2522ced36 100644 --- a/Extension/bin/messages/it/messages.json +++ b/Extension/bin/messages/it/messages.json @@ -2715,7 +2715,7 @@ "accesso non valido a %n nell'oggetto del tipo completo %t", "%sq non è consentito in questo punto", "%sq non consente l'uso di più dichiaratori", - "initialization with \"{...}\" is not allowed for %sq", + "l'inizializzazione con '{...}' non è consentita per %sq", "%sq deve essere un segnaposto per il tipo completo della variabile e non per un componente di tale tipo", "in una variabile dichiarata con %sq è richiesto un inizializzatore", "la costante Integer deve essere maggiore o uguale a zero", @@ -3789,14 +3789,14 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "una chiamata a '__builtin_constexpr_diag' richiede tre argomenti", + "il primo argomento di una chiamata a '__builtin_constexpr_diag' deve essere 0 (nota), 1 (avviso), 2 (errore), 16 (nota nel chiamante), 17 (avviso nel chiamante) o 18 (errore nel chiamante)", + "per il tag e il messaggio in una chiamata a '__builtin_constexpr_diag' è necessaria una stringa letterale o un oggetto con la rappresentazione di std::string_view", + "il tag in una chiamata a '__builtin_constexpr_diag' può contenere solo lettere, cifre e caratteri di sottolineatura", "tag non valido nell'opzione di controllo della diagnostica constexpr: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "una sequenza di token deve essere preceduta da '^^'", + "interpolatore atteso ('\\[', '\\[:', '\\{', '\\val' o '\\str')", "%sq non forma un identificatore", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "l'operando di un interpolatore '\\{...}' non è una sequenza di token", "questa dichiarazione di %n non dichiara lo stesso tipo della dichiarazione %p" ] diff --git a/Extension/bin/messages/ja/messages.json b/Extension/bin/messages/ja/messages.json index 33c35787f..c865dd627 100644 --- a/Extension/bin/messages/ja/messages.json +++ b/Extension/bin/messages/ja/messages.json @@ -2715,7 +2715,7 @@ "完全な型 %t のオブジェクトの %n へのアクセス権が無効です", "%sq はここでは使用できません", "%sq には複数の宣言子は使用できません", - "initialization with \"{...}\" is not allowed for %sq", + "'{...}' による初期化は %sq では許可されていません", "%sq は、変数の完全な型のプレースホルダーである必要があります (その型のコンポーネント用ではありません)", "%sq で宣言された変数には初期化子が必要です", "整数型の定数はゼロ以上である必要があります", @@ -3789,14 +3789,14 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", + "'__builtin_constexpr_diag' の呼び出しには 3 つの引数が必要です", "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "タグと '__builtin_constexpr_diag' の呼び出しのメッセージには、文字列リテラルまたは std::string_view の表現を持つオブジェクトが必要です", + "'__builtin_constexpr_diag' の呼び出しのタグには、文字、数字、アンダースコアのみを含めることができます", "constexpr 診断制御オプションのタグが無効です: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "トークン シーケンスは '^^' によって導入する必要があります", + "補間子 ('\\['、'\\[:'、'\\{'、'\\val'、または '\\str') が必要です", "%sq は識別子をスペルしません", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "'\\{...}' 補間子のオペランドは、トークン シーケンスではありません", "%n のこの宣言は、宣言 %p と同じ型を宣言しません" ] diff --git a/Extension/bin/messages/ko/messages.json b/Extension/bin/messages/ko/messages.json index ab7c28004..a56a7cc2a 100644 --- a/Extension/bin/messages/ko/messages.json +++ b/Extension/bin/messages/ko/messages.json @@ -2715,7 +2715,7 @@ "완전한 형식 %t의 개체에서 %n에 대한 액세스가 잘못되었습니다.", "%sq은(는) 여기에서 사용할 수 없습니다.", "%sq에는 선언자를 여러 개 사용할 수 없습니다.", - "initialization with \"{...}\" is not allowed for %sq", + "'{...}'로 초기화하는 것은 %sq에 허용되지 않습니다.", "%sq은(는) 변수의 전체 형식을 나타내는 자리 표시자여야 하며, 해당 형식의 구성 요소를 나타내는 자리 표시자여서는 안 됩니다.", "%sq (으)로 선언된 변수에는 이니셜라이저가 필요합니다.", "정수 상수는 0보다 크거나 같아야 합니다.", @@ -3789,14 +3789,14 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", + "'__builtin_constexpr_diag'를 호출하려면 인수가 3개 필요합니다.", "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "문자열 리터럴 또는 std::string_view 표현이 있는 개체는 '__builtin_constexpr_diag'에 대한 호출의 태그 및 메시지에 필요합니다.", + "'__builtin_constexpr_diag'에 대한 호출의 태그에는 문자, 숫자 및 밑줄만 포함될 수 있습니다.", "constexpr 진단 제어 옵션의 잘못된 태그: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", - "%sq does not spell an identifier", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "토큰 시퀀스는 '^^'로 시작해야 합니다.", + "보간기가 필요합니다('\\[', '\\[:', '\\{', '\\val' 또는 '\\str').", + "%sq은(는) 식별자를 나타내지 않습니다.", + "'\\{...}' 보간기의 피연산자는 토큰 시퀀스가 아닙니다.", "이 선언 %n은(는) 선언 %p과(와) 동일한 형식을 선언하지 않습니다." ] diff --git a/Extension/bin/messages/pl/messages.json b/Extension/bin/messages/pl/messages.json index 128c0aa6e..eeda0837c 100644 --- a/Extension/bin/messages/pl/messages.json +++ b/Extension/bin/messages/pl/messages.json @@ -2715,7 +2715,7 @@ "nieprawidłowy dostęp do elementu %n w obiekcie, którego pełny typ to %t", "element %sq nie jest dozwolony w tym miejscu", "element %sq nie zezwala na wiele deklaratorów", - "initialization with \"{...}\" is not allowed for %sq", + "inicjowanie za pomocą „{...}” jest niedozwolone dla %sq", "%sq musi być symbolem zastępczym dla pełnego typu zmiennej (nie dla składnika tego typu)", "zmienna zadeklarowana za pomocą elementu %sq wymaga inicjatora", "stała całkowita musi być równa zero lub większa", @@ -3783,20 +3783,20 @@ "typ nie jest C-podobny z powodu tego wyrażenia lambda", "kwalifikator nazwy typu wyliczeniowego jest funkcją języka C++11", "nieograniczone unie są funkcją języka C++11", - "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", + "rozwinięcia pakietu nie można użyć jako argumentu dla niepakietowego %n1 z %n2", "zakresu przekazanego do metafunkcji nie można iterować", "interpreter:", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "wywołanie funkcji „__builtin_constexpr_diag” wymaga trzech argumentów", + "pierwszym argumentem w wywołaniu funkcji „__builtin_constexpr_diag” musi być 0 (uwaga), 1 (ostrzeżenie), 2 (błąd), 16 (uwaga w miejscu wywołania), 17 (ostrzeżenie w miejscu wywołania) lub 18 (błąd w miejscu wywołania)", + "w wywołaniu funkcji „__builtin_constexpr_diag” dla tagu i komunikatu wymagany jest literał ciągu lub obiekt o reprezentacji std::string_view", + "tag w wywołaniu funkcji „__builtin_constexpr_diag” może zawierać wyłącznie litery, cyfry i znaki podkreślenia", "nieprawidłowy tag w opcji kontroli diagnostycznej constexpr: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "sekwencję tokenów musi poprzedzać „^^”", + "oczekiwano interpolatora ('\\[', '\\[:', '\\{', '\\val' lub '\\str')", "%sq nie określa pisowni identyfikatora", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "operand interpolatora „\\{...}” nie jest sekwencją tokenów", "deklaracja %n nie deklaruje tego samego typu co deklaracja %p" ] diff --git a/Extension/bin/messages/pt-br/messages.json b/Extension/bin/messages/pt-br/messages.json index 73cf91a4f..8a4a27a16 100644 --- a/Extension/bin/messages/pt-br/messages.json +++ b/Extension/bin/messages/pt-br/messages.json @@ -2713,11 +2713,11 @@ "falha na inicialização de metadados", "Conversão inválida de base para derivada (o tipo real da classe derivada é %t)", "acesso inválido a %n no objeto do tipo %t completo", - "%sq not allowed here", - "%sq does not permit multiple declarators", - "initialization with \"{...}\" is not allowed for %sq", + "%sq não é permitido aqui", + "%sq não permite vários declaradores", + "a inicialização com '{...}' não é permitida para %sq", "%sq deve ser um espaço reservado para o tipo completo da variável (não para um componente desse tipo)", - "a variable declared with %sq requires an initializer", + "uma variável declarada com %sq requer um inicializador", "o constante inteiro deve ser maior ou igual a zero", "o tipo deve ser um tipo integral", "não é possível interpretar a expressão", @@ -3750,7 +3750,7 @@ "a sintaxe abreviada de template de função é não padrão para guias de dedução", "parâmetros explícitos de 'this' são um recurso do C++23", "designadores de matriz não têm suporte em contextos de dedução de modelo", - "the second argument must be an integer type with the same shape (a scalar or vector type) as the first argument", + "o segundo argumento deve ser um tipo inteiro com a mesma forma (um tipo escalar ou de vetor) que o primeiro argumento", "o argumento deve ser um vetor de tipos boolianos", "o argumento deve ser um ponteiro para um tipo escalar", "tipo de argumento incorreto (deveria ser %t)", @@ -3783,20 +3783,20 @@ "o tipo não é semelhante a C devido a esta expressão lambda", "um qualificador de nome de tipo de enumeração é um recurso do C++11", "uniões irrestritas são um recurso do C++11", - "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", - "the range passed to the metafunction cannot be iterated", - "interpreter:", + "uma expansão de pacote não pode ser usada como argumento para o parâmetro %n1, que não é um pacote, de %n2", + "o intervalo passado para a metafunção não pode ser iterado", + "interpretador:", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", - "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", - "%sq does not spell an identifier", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "uma chamada a '__builtin_constexpr_diag' requer três argumentos", + "O primeiro argumento em uma chamada para '__builtin_constexpr_diag' deve ser 0 (nota), 1 (aviso), 2 (erro), 16 (nota no chamador), 17 (aviso no chamador) ou 18 (erro no chamador)", + "um literal de cadeia de caracteres ou um objeto com a representação de std::string_view é necessário para o rótulo e a mensagem em uma chamada para '__builtin_constexpr_diag'", + "O rótulo em uma chamada para '__builtin_constexpr_diag' pode conter apenas letras, dígitos e sublinhados", + "rótulo inválido na opção de controle de diagnóstico constexpr: %s", + "uma sequência de tokens deve ser introduzida por '^^'", + "era esperado um interpolador ('\\[', '\\[:', '\\{', '\\val' ou '\\str')", + "%sq não forma um identificador", + "o operando de um interpolador '\\{...}' não é uma sequência de tokens", "Esta declaração de %n não declara o mesmo tipo que a declaração %p" ] diff --git a/Extension/bin/messages/ru/messages.json b/Extension/bin/messages/ru/messages.json index 27383c50f..b1b632690 100644 --- a/Extension/bin/messages/ru/messages.json +++ b/Extension/bin/messages/ru/messages.json @@ -2715,7 +2715,7 @@ "недопустимый доступ к %n в объекте полного типа %t", "%sq здесь не разрешен", "%sq does not permit multiple declarators", - "initialization with \"{...}\" is not allowed for %sq", + "инициализация с \"{...}\" не разрешена для %sq", "%sq должен быть заполнителем для полного типа переменной (а не для компонента этого типа)", "для переменной, объявленной с помощью %sq, требуется инициализатор", "целочисленная константа должна быть больше нуля или равна нулю", @@ -3789,14 +3789,14 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "вызов \"__builtin_constexpr_diag\" требует трех аргументов", + "первый аргумент при вызове функции \"__builtin_constexpr_diag\" должен быть равен 0 (примечание), 1 (предупреждение), 2 (ошибка), 16 (примечание в вызывающей программе), 17 (предупреждение в вызывающей программе) или 18 (ошибка в вызывающей программе)", + "для тега и сообщения при вызове функции \"__builtin_constexpr_diag\" требуется строковый литерал или объект, представляющий std::string_view", + "Тег в вызове \"__builtin_constexpr_diag\" может содержать только буквы, цифры и символы подчеркивания", "недопустимый тег в параметре диагностического контроля constexpr: %s", - "a token sequence must be introduced by \"^^\"", - "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", + "последовательность токенов должна начинаться с \"^^\"", + "требуется интерполятор (\"\\[\", \"\\[:\", \"\\{\", \"\\val\" или \"\\str\")", "%sq не образует идентификатор", - "the operand of a \"\\{...}\" interpolator is not a token sequence", + "операнд интерполятора \"\\{...}\" не является последовательностью токенов", "это объявление %n не объявляет тот же тип, что и объявление %p" ] diff --git a/Extension/bin/messages/tr/messages.json b/Extension/bin/messages/tr/messages.json index 13cbb91b5..de30d890a 100644 --- a/Extension/bin/messages/tr/messages.json +++ b/Extension/bin/messages/tr/messages.json @@ -2713,11 +2713,11 @@ "meta veriler başlatılamadı", "temelden türetilmişe dönüştürme işlemi geçersiz (gerçek türetilmiş sınıf türü %t)", "tam %t türünün nesnesindeki %n öğesine geçersiz erişim", - "%sq not allowed here", - "%sq does not permit multiple declarators", - "initialization with \"{...}\" is not allowed for %sq", - "%sq must be a placeholder for the complete type of the variable (not for a component of that type)", - "a variable declared with %sq requires an initializer", + "%sq burada kullanılamaz", + "%sq birden fazla bildirimciye izin vermez", + "%sq için '{...}' ile başlatmaya izin verilmiyor", + "%sq, değişkenin tam türü için yer tutucu olmalıdır (bu türde bir bileşen için değil)", + "%sq ile bildirilen değişken için başlatıcı gerekir", "sabit tam sayı değeri sıfırdan büyük veya sıfıra eşit olmalıdır", "tür, tam sayı türünde olmalıdır", "ifade yorumlanamıyor", @@ -3750,7 +3750,7 @@ "kısaltılmış işlev şablonu sözdizimi çıkarsama kılavuzları için standart değil", "açık 'this' parametreleri bir C++23 özelliğidir", "dizi belirleyicileri şablon çıkarsama bağlamlarında desteklenmez", - "the second argument must be an integer type with the same shape (a scalar or vector type) as the first argument", + "ikinci bağımsız değişken, birinci bağımsız değişkenle aynı şekle (skaler veya vektör türü) sahip bir tamsayı türünde olmalıdır", "bağımsız değişken, boole türlerinden bir vektör olmalıdır", "bağımsız değişken, skaler bir türe yönelik işaretçi olmalıdır", "yanlış bağımsız değişken türü (%t olmalıdır)", @@ -3785,18 +3785,18 @@ "kısıtlanmamış birleşimler bir C++11 özelliğidir", "a pack expansion cannot be used as an argument for non-pack %n1 of %n2", "the range passed to the metafunction cannot be iterated", - "interpreter:", + "yorumlayıcı:", "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", + "'__builtin_constexpr_diag' çağrısı üç bağımsız değişken gerektirir", "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", - "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", + "'__builtin_constexpr_diag' çağrısında etiket ve ileti için bir dize sabit değeri veya std::string_view gösterimine sahip bir nesne gereklidir", + "'__builtin_constexpr_diag' çağrısındaki etiket yalnızca harf, rakam ve alt çizgi içerebilir", + "constexpr tanılama denetimi seçeneğinde geçersiz etiket: %s", + "bir belirteç dizisinin başında '^^' bulunmalıdır", "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", "%sq does not spell an identifier", "the operand of a \"\\{...}\" interpolator is not a token sequence", - "this declaration of %n does not declare the same type as the declaration %p" + "bu %n bildirimi, %p bildirimi ile aynı türü bildirmez" ] diff --git a/Extension/bin/messages/zh-cn/messages.json b/Extension/bin/messages/zh-cn/messages.json index bffb120e8..40e3fc529 100644 --- a/Extension/bin/messages/zh-cn/messages.json +++ b/Extension/bin/messages/zh-cn/messages.json @@ -2715,9 +2715,9 @@ "对完整类型 %t 的对象中的 %n 的访问无效", "此处不允许使用 %sq", "%sq 不允许使用多个声明符", - "initialization with \"{...}\" is not allowed for %sq", + "不允许对 %sq 使用 \"{...}\" 进行初始化", "%sq 必须是用于完整变量类型的占位符(不适用于此类型的组件)", - "a variable declared with %sq requires an initializer", + "使用 %sq 声明的变量需要初始化表达式", "整型常数必须大于等于零", "类型必须是整型类型", "表达式无法解释", @@ -3789,12 +3789,12 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", + "调用 \"__builtin_constexpr_diag\" 需要三个参数", "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "调用 \"__builtin_constexpr_diag\" 时,标记和消息需要字符串字面量或具有 std::string_view 表示形式的对象", + "对 “__builtin_constexpr_diag” 的调用中的标记只能包含字母、数字和下划线", "constexpr 诊断控制选项中的标记无效: %s", - "a token sequence must be introduced by \"^^\"", + "标记序列必须由 \"^^\" 引入", "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", "%sq 未拼写为标识符", "the operand of a \"\\{...}\" interpolator is not a token sequence", diff --git a/Extension/bin/messages/zh-tw/messages.json b/Extension/bin/messages/zh-tw/messages.json index f0bf48136..b314c2dd3 100644 --- a/Extension/bin/messages/zh-tw/messages.json +++ b/Extension/bin/messages/zh-tw/messages.json @@ -3789,12 +3789,12 @@ "%s1 %s2", "%s1 %s2", "%s1 %s2", - "a call to \"__builtin_constexpr_diag\" requires three arguments", - "the first argument in a call to \"__builtin_constexpr_diag\" must be 0 (remark), 1 (warning), 2 (error), 16 (remark at caller), 17 (warning at caller), or 18 (error at caller)", - "a string literal or an object with the representation of std::string_view is required for the tag and the message in a call to \"__builtin_constexpr_diag\"", - "the tag in a call to \"__builtin_constexpr_diag\" may contain only letters, digits, and underscores", + "呼叫 '__builtin_constexpr_diag' 需要三個引數", + "呼叫 '__builtin_constexpr_diag' 時,第一個引數必須是 0 (備註)、1 (警告)、2 (錯誤)、16 (呼叫端備註)、17 (呼叫端警告) 或 18 (呼叫端錯誤)", + "呼叫 '__builtin_constexpr_diag' 時,標籤和訊息必須使用字串常值或具有 std::string_view 表示的物件", + "呼叫 '__builtin_constexpr_diag' 中的標籤只能包含字母、數字和底線", "invalid tag in constexpr diagnostic control option: %s", - "a token sequence must be introduced by \"^^\"", + "Token 序列必須以 '^^' 開頭", "expected an interpolator (\"\\[\", \"\\[:\", \"\\{\", \"\\val\", or \"\\str\")", "%sq 無法拼出識別碼", "the operand of a \"\\{...}\" interpolator is not a token sequence", diff --git a/Extension/package.json b/Extension/package.json index c2494c9de..c815012c7 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -2,7 +2,7 @@ "name": "cpptools", "displayName": "C/C++", "description": "C/C++ IntelliSense, debugging, and code browsing.", - "version": "1.35.5-main", + "version": "1.36.0-main", "publisher": "ms-vscode", "icon": "LanguageCCPP_color_128x.png", "readme": "README.md", @@ -11,7 +11,7 @@ }, "license": "SEE LICENSE IN LICENSE.txt", "engines": { - "vscode": "^1.77.0" + "vscode": "^1.82.0" }, "bugs": { "url": "https://github.com/Microsoft/vscode-cpptools/issues", @@ -7258,7 +7258,7 @@ "@octokit/rest": "^21.1.1", "@types/glob": "^7.2.0", "@types/mocha": "^10.0.6", - "@types/node": "^20.14.2", + "@types/node": "^18.19.130", "@types/node-fetch": "^2.6.13", "@types/plist": "^3.0.5", "@types/proxyquire": "^1.3.31", @@ -7278,7 +7278,7 @@ "await-notify": "^1.0.1", "eslint": "^10.10.0", "eslint-plugin-header": "^3.1.1", - "eslint-plugin-import-x": "^4.17.1", + "eslint-plugin-import-x": "^4.18.0", "eslint-plugin-jsdoc": "^62.9.0", "event-stream": "^4.0.1", "fs-extra": "^11.2.0", @@ -7326,9 +7326,14 @@ "which": "^2.0.2" }, "resolutions": { + "**/@eslint/config-array/minimatch": "11.0.5", + "**/@typescript-eslint/typescript-estree/minimatch": "11.0.5", + "**/@vscode/vsce/minimatch": "11.0.5", + "**/eslint-plugin-import-x/minimatch": "11.0.5", + "**/eslint/minimatch": "11.0.5", "gulp-typescript/**/glob-parent": "^5.1.2", - "serialize-javascript": "^7.0.5", - "fast-uri": "^3.1.8", + "serialize-javascript": "^7.1.3", + "fast-uri": "^3.1.9", "@humanfs/node": "^0.16.8" } -} \ No newline at end of file +} diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index 5481bdd8b..b370188f7 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -53,7 +53,7 @@ import * as configs from './configurations'; import { CopilotCompletionContextFeatures, CopilotCompletionContextProvider } from './copilotCompletionContextProvider'; import { CustomConfigurationProvider1, getCustomConfigProviders, isSameProviderExtensionId } from './customProviders'; import { DataBinding } from './dataBinding'; -import { cachedEditorConfigSettings, getEditorConfigSettings } from './editorConfig'; +import { cachedEditorConfigSettings, EditorConfigWatcher, getEditorConfigSettings } from './editorConfig'; import { CppSourceStr, clients, configPrefix, initializeIntervalTimer, isWritingCrashCallStack, updateLanguageConfigurations, usesCrashHandler, watchForCrashes } from './extension'; import { IncludeCleanupPreferences, getIncludeCleanupPreferences } from './includeCleanupEditorConfig'; import { InactiveRegion, InactiveRegionStore, getInactiveRegionStartLines } from './inactiveRegions'; @@ -882,6 +882,7 @@ export class DefaultClient implements Client { private semanticTokensProviderDisposable: vscode.Disposable | undefined; private innerConfiguration?: configs.CppProperties; private rootPathFileWatcher?: vscode.FileSystemWatcher; + private editorConfigWatcher?: EditorConfigWatcher; private rootFolder?: vscode.WorkspaceFolder; private rootRealPath: string; private workspaceStoragePath: string; @@ -1947,6 +1948,11 @@ export class DefaultClient implements Client { } private prepareVisibleEditorInfo(editors: readonly vscode.TextEditor[]): { [uri: string]: VisibleEditorInfo } { + this.editorConfigWatcher ??= new EditorConfigWatcher(() => this.refreshEditorConfigSettings()); + if (this.editorConfigWatcher.update(editors.filter(editor => editor.document.uri.scheme === 'file') + .map(editor => editor.document.uri.fsPath))) { + cachedEditorConfigLookups.clear(); + } const visibileEditorInfo: { [uri: string]: VisibleEditorInfo } = {}; editors.forEach(editor => { // Use a map, to account for multiple editors for the same file. @@ -1975,6 +1981,10 @@ export class DefaultClient implements Client { // Handles changes to visible files/ranges, changes to current selection/position, // and changes to the active text editor. Should only be called on the primary client. public async onDidChangeVisibleTextEditors(editors: readonly vscode.TextEditor[]): Promise { + const defaultClient: Client = clients.getDefaultClient(); + if (this !== defaultClient) { + return defaultClient.onDidChangeVisibleTextEditors(editors); + } const params: DidChangeVisibleTextEditorsParams = { visibleEditorInfo: this.prepareVisibleEditorInfo(editors) }; @@ -2719,10 +2729,11 @@ export class DefaultClient implements Client { private refreshEditorConfigSettings(): void { cachedEditorConfigSettings.clear(); cachedEditorConfigLookups.clear(); - this.updateActiveDocumentTextOptions(); + const defaultClient: Client = clients.getDefaultClient(); + defaultClient.updateActiveDocumentTextOptions(); const cppEditors: vscode.TextEditor[] = vscode.window.visibleTextEditors.filter(editor => util.isCpp(editor.document)); - void this.onDidChangeVisibleTextEditors(cppEditors).catch(logAndReturn.undefined); + void defaultClient.onDidChangeVisibleTextEditors(cppEditors).catch(logAndReturn.undefined); } /** @@ -3215,7 +3226,7 @@ export class DefaultClient implements Client { void SessionState.buildAndDebugIsSourceFile.set(util.isCppOrCFile(editor.document.uri, editor.document.languageId)); void SessionState.buildAndDebugIsFolderOpen.set(util.isFolderOpen(editor.document.uri)); // If using vcFormat, check for a ".editorconfig" file, and apply those text options to the active document. - const settings: CppSettings = new CppSettings(this.RootUri); + const settings: CppSettings = new CppSettings(editor.document.uri); if (settings.useVcFormat(editor.document)) { const editorConfigSettings: any = getEditorConfigSettings(editor.document.uri.fsPath); if (editorConfigSettings.indent_style === "tab") { @@ -4358,6 +4369,7 @@ export class DefaultClient implements Client { } public dispose(): void { + this.editorConfigWatcher?.dispose(); this.inactiveRegionsDecorations.forEach(currentSet => currentSet.decoration.dispose()); this.inactiveRegionsDecorations.clear(); this.pendingTagParsingCalls.forEach(pendingCall => { diff --git a/Extension/src/LanguageServer/clientCollection.ts b/Extension/src/LanguageServer/clientCollection.ts index 390afc2ff..57b7d7955 100644 --- a/Extension/src/LanguageServer/clientCollection.ts +++ b/Extension/src/LanguageServer/clientCollection.ts @@ -7,6 +7,7 @@ import * as vscode from 'vscode'; import * as util from '../common'; import * as telemetry from '../telemetry'; +import { logAndReturn } from '../Utility/Async/returns'; import * as cpptools from './client'; import { getCustomConfigProviders } from './customProviders'; import { TimeTelemetryCollector } from './timeTelemetryCollector'; @@ -63,7 +64,8 @@ export class ClientCollection { this.defaultClient = this.activeClient; this.languageClients.set(key, this.activeClient); - this.disposables.push(vscode.workspace.onDidChangeWorkspaceFolders(e => this.onDidChangeWorkspaceFolders(e))); + this.disposables.push(vscode.workspace.onDidChangeWorkspaceFolders(e => + this.onDidChangeWorkspaceFolders(e).catch(logAndReturn.undefined))); } public async didChangeActiveEditor(editor?: vscode.TextEditor): Promise { @@ -144,6 +146,9 @@ export class ClientCollection { this.activeClient.activate(); await this.activeClient.didChangeActiveEditor(vscode.window.activeTextEditor); } + + await this.defaultClient.onDidChangeVisibleTextEditors( + vscode.window.visibleTextEditors.filter(editor => util.isCpp(editor.document))); } private async onDidChangeWorkspaceFolders(e?: vscode.WorkspaceFoldersChangeEvent): Promise { @@ -205,6 +210,9 @@ export class ClientCollection { this.activeClient.activate(); } } + + await this.defaultClient.onDidChangeVisibleTextEditors( + vscode.window.visibleTextEditors.filter(editor => util.isCpp(editor.document))); } } diff --git a/Extension/src/LanguageServer/editorConfig.ts b/Extension/src/LanguageServer/editorConfig.ts index 4cccd367f..ff6275f5e 100644 --- a/Extension/src/LanguageServer/editorConfig.ts +++ b/Extension/src/LanguageServer/editorConfig.ts @@ -7,10 +7,23 @@ import * as fs from 'fs'; import { Minimatch } from 'minimatch'; import * as path from 'path'; +import * as vscode from 'vscode'; import * as util from '../common'; import { isWindows } from '../constants'; -export const cachedEditorConfigSettings: Map = new Map(); +type EditorConfigSettings = Record; + +interface EditorConfigSection { + pattern: string; + settings: EditorConfigSettings; +} + +interface ParsedEditorConfig { + global: EditorConfigSettings; + sections: EditorConfigSection[]; +} + +export const cachedEditorConfigSettings: Map = new Map(); export function mapIndentationReferenceToEditorConfig(value: string | undefined): string { if (value !== undefined) { @@ -85,10 +98,10 @@ export function matchesSection(pathPrefix: string, filePath: string, section: st return matcher.match(filePath); } -function parseEditorConfigContent(content: string): Record { +function parseEditorConfigContent(content: string): ParsedEditorConfig { const lines = content.split(/\r?\n/); - const config: Record = {}; - let currentSection: string | null = '*'; // Use '*' for sectionless (global) settings. + const config: ParsedEditorConfig = { global: {}, sections: [] }; + let currentSettings: EditorConfigSettings = config.global; lines.forEach(line => { line = line.trim(); @@ -99,32 +112,25 @@ function parseEditorConfigContent(content: string): Record { } if (line.startsWith('[') && line.endsWith(']')) { - // New section (e.g., [*.js]) - currentSection = line.slice(1, -1).trim(); - config[currentSection] = config[currentSection] || {}; + currentSettings = {}; + config.sections.push({ pattern: line.slice(1, -1).trim(), settings: currentSettings }); } else { // Key-value pair (e.g., indent_style = space). const [key, ...values] = line.split('='); if (key && values.length > 0) { - const trimmedKey = key.trim(); - let value: any = values.join('=').trim(); + const trimmedKey = key.trim().toLowerCase(); + let value: string | number | boolean = values.join('=').trim(); // Convert boolean-like and numeric values. - if (value === 'true') { + if (value.toLowerCase() === 'true') { value = true; - } else if (value === 'false') { + } else if (value.toLowerCase() === 'false') { value = false; } else if (!isNaN(Number(value))) { value = Number(value); } - if (currentSection) { - // Ensure the current section is initialized. - if (!config[currentSection]) { - config[currentSection] = {}; - } - config[currentSection][trimmedKey] = value; - } + currentSettings[trimmedKey] = value; } } }); @@ -132,9 +138,8 @@ function parseEditorConfigContent(content: string): Record { return config; } -function getEditorConfig(filePath: string): any { - let combinedConfig: any = {}; - let globalConfig: any = {}; +function getEditorConfig(filePath: string): EditorConfigSettings { + let combinedConfig: EditorConfigSettings = {}; let currentDir: string = path.dirname(filePath); const rootDir: string = path.parse(currentDir).root; @@ -147,33 +152,24 @@ function getEditorConfig(filePath: string): any { const editorConfigPath: string = path.join(currentDir, '.editorconfig'); if (util.checkFileExistsSync(editorConfigPath)) { const configFileContent: string = fs.readFileSync(editorConfigPath, 'utf-8'); - const configData = parseEditorConfigContent(configFileContent); - - // Extract global (sectionless) entries. - if (configData['*']) { - globalConfig = { - ...globalConfig, - ...configData['*'] - }; - } + const configData: ParsedEditorConfig = parseEditorConfigContent(configFileContent); + const currentConfig: EditorConfigSettings = { ...configData.global }; let currentDirForwardSlashes: string = currentDir; if (isWindows) { currentDirForwardSlashes = currentDir.replace(/\\/g, '/'); } - // Match sections and combine configurations. - Object.keys(configData).forEach((section: string) => { - if (section !== '*' && matchesSection(currentDirForwardSlashes, filePath, section)) { - combinedConfig = { - ...configData[section], - ...combinedConfig - }; + for (const section of configData.sections) { + if (matchesSection(currentDirForwardSlashes, filePath, section.pattern)) { + Object.assign(currentConfig, section.settings); } - }); + } + combinedConfig = { ...currentConfig, ...combinedConfig }; // Check if the current .editorconfig is the root. - if (configData['*']?.root) { + if (configData.global.root === true) { + combinedConfig.root = true; break; // Stop searching after processing the root = true file. } } @@ -183,20 +179,78 @@ function getEditorConfig(filePath: string): any { currentDir = path.dirname(currentDir); } - // Merge global config with section-based config. - return { - ...globalConfig, - ...combinedConfig - }; + for (const [key, value] of Object.entries(combinedConfig)) { + if (typeof value === 'string' && value.toLowerCase() === 'unset') { + delete combinedConfig[key]; + } + } + return combinedConfig; } // Look up the appropriate .editorconfig settings for the specified file. // This is intentionally not async to avoid races due to multiple entrancy. -export function getEditorConfigSettings(fsPath: string): Promise { - let editorConfigSettings: any = cachedEditorConfigSettings.get(fsPath); +export function getEditorConfigSettings(fsPath: string): EditorConfigSettings { + let editorConfigSettings: EditorConfigSettings | undefined = cachedEditorConfigSettings.get(fsPath); if (!editorConfigSettings) { editorConfigSettings = getEditorConfig(fsPath); cachedEditorConfigSettings.set(fsPath, editorConfigSettings); } return editorConfigSettings; } + +export class EditorConfigWatcher implements vscode.Disposable { + private readonly watchers: Map = new Map(); + + constructor(private readonly onChanged: () => void) { } + + public update(filePaths: readonly string[]): boolean { + const directories: Set = new Set(); + for (const filePath of filePaths) { + let directory: string = path.dirname(filePath); + for (;;) { + if (!vscode.workspace.getWorkspaceFolder(vscode.Uri.file(directory))) { + directories.add(directory); + } + const parent: string = path.dirname(directory); + if (parent === directory) { + break; + } + directory = parent; + } + } + + for (const [directory, watcher] of this.watchers) { + if (!directories.has(directory)) { + watcher.dispose(); + this.watchers.delete(directory); + } + } + + let addedWatchers: boolean = false; + for (const directory of directories) { + if (this.watchers.has(directory)) { + continue; + } + const watcher: vscode.FileSystemWatcher = vscode.workspace.createFileSystemWatcher( + new vscode.RelativePattern(vscode.Uri.file(directory), '.editorconfig')); + const onChanged = () => { + cachedEditorConfigSettings.clear(); + this.onChanged(); + }; + watcher.onDidCreate(onChanged); + watcher.onDidChange(onChanged); + watcher.onDidDelete(onChanged); + this.watchers.set(directory, watcher); + addedWatchers = true; + } + if (addedWatchers) { + cachedEditorConfigSettings.clear(); + } + return addedWatchers; + } + + public dispose(): void { + this.watchers.forEach(watcher => watcher.dispose()); + this.watchers.clear(); + } +} diff --git a/Extension/src/LanguageServer/includeCleanupEditorConfig.ts b/Extension/src/LanguageServer/includeCleanupEditorConfig.ts index 60c7fb17c..1742d48af 100644 --- a/Extension/src/LanguageServer/includeCleanupEditorConfig.ts +++ b/Extension/src/LanguageServer/includeCleanupEditorConfig.ts @@ -8,6 +8,7 @@ export interface IncludeCleanupPreferences { excludedFiles: string; replacementFiles: string; requiredFiles: string; + removeUnusedErrorTagType: string; } function normalizeSettingKeys(settings: any): Record { @@ -28,6 +29,7 @@ export function getIncludeCleanupPreferences(settings: any): IncludeCleanupPrefe alternateFiles: getStringSetting(normalizedSettings, 'cpp_include_cleanup_alternate_files'), excludedFiles: getStringSetting(normalizedSettings, 'cpp_include_cleanup_excluded_files'), replacementFiles: getStringSetting(normalizedSettings, 'cpp_include_cleanup_replacement_files'), - requiredFiles: getStringSetting(normalizedSettings, 'cpp_include_cleanup_required_files') + requiredFiles: getStringSetting(normalizedSettings, 'cpp_include_cleanup_required_files'), + removeUnusedErrorTagType: getStringSetting(normalizedSettings, 'cpp_include_cleanup_remove_unused_error_tag_type').toLowerCase() || 'none' }; } diff --git a/Extension/src/LanguageServer/protocolFilter.ts b/Extension/src/LanguageServer/protocolFilter.ts index d97481297..f5bc72bc3 100644 --- a/Extension/src/LanguageServer/protocolFilter.ts +++ b/Extension/src/LanguageServer/protocolFilter.ts @@ -92,7 +92,7 @@ export function createProtocolFilter(): Middleware { client.takeOwnership(document); void sendMessage(document); const cppEditors: vscode.TextEditor[] = vscode.window.visibleTextEditors.filter(e => util.isCpp(e.document)); - void client.onDidChangeVisibleTextEditors(cppEditors).catch(logAndReturn.undefined); + void clients.getDefaultClient().onDidChangeVisibleTextEditors(cppEditors).catch(logAndReturn.undefined); } } }, diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index df651a089..5312102ef 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -817,5 +817,13 @@ "error_config_arg_requires_path": { "text": "{0} requires a path.", "hint": "Error shown when a configuration argument is not followed by a path. {0} is the command-line option name. {Locked=\"{0}\"}" + }, + "include_is_not_used": { + "text": "Include is not used", + "hint": "Diagnostic on a C or C++ include directive whose header is unused." + }, + "include_is_duplicated": { + "text": "Include is duplicated", + "hint": "Diagnostic on a C or C++ include directive that repeats an earlier include of the same header." } } diff --git a/Extension/test/scenarios/MultirootDeadlockTest/tests/editorConfig.test.ts b/Extension/test/scenarios/MultirootDeadlockTest/tests/editorConfig.test.ts new file mode 100644 index 000000000..93dc39723 --- /dev/null +++ b/Extension/test/scenarios/MultirootDeadlockTest/tests/editorConfig.test.ts @@ -0,0 +1,194 @@ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. + * See 'LICENSE' in the project root for license information. + * ------------------------------------------------------------------------------------------ */ + +import * as assert from 'assert'; +import { mkdtemp, readFile, rm, writeFile } from 'fs/promises'; +import { suite } from 'mocha'; +import * as path from 'path'; +import * as sinon from 'sinon'; +import * as vscode from 'vscode'; +import { EditorConfigWatcher } from '../../../../src/LanguageServer/editorConfig'; +import * as extension from '../../../../src/LanguageServer/extension'; +import { createProtocolFilter } from '../../../../src/LanguageServer/protocolFilter'; +import { timeout } from '../../../../src/Utility/Async/timeout'; +import * as testHelpers from '../../../common/testHelpers'; + +suite("EditorConfig in a multi-root workspace", () => { + let firstFolder: vscode.WorkspaceFolder; + let secondFolder: vscode.WorkspaceFolder; + const directories: string[] = []; + const documents: vscode.TextDocument[] = []; + + suiteSetup(async () => { + await testHelpers.activateCppExtension(); + firstFolder = vscode.workspace.workspaceFolders?.[0] ?? assert.fail("First workspace folder is unavailable"); + secondFolder = vscode.workspace.workspaceFolders?.[1] ?? assert.fail("Second workspace folder is unavailable"); + }); + + teardown(async () => { + await closeDocuments(); + await extension.clients.getDefaultClient().onDidChangeVisibleTextEditors([]); + for (const directory of directories.splice(0)) { + await rm(directory, { recursive: true, force: true, maxRetries: 5 }); + } + }); + + async function closeDocuments(): Promise { + for (const document of documents.splice(0)) { + if (!document.isClosed) { + await vscode.window.showTextDocument(document, { preview: false }); + await vscode.commands.executeCommand("workbench.action.revertAndCloseActiveEditor"); + } + } + } + + async function createDocument(folder: vscode.WorkspaceFolder, endOfLine?: 'crlf'): Promise { + const directory = await mkdtemp(path.join(folder.uri.fsPath, 'editorconfig-review-')); + directories.push(directory); + await writeFile(path.join(directory, '.editorconfig'), + 'root = true\n[*.cpp]\nindent_style = tab\nindent_size = 3\n' + + (endOfLine ? `end_of_line = ${endOfLine}\n` : '')); + const source = path.join(directory, 'sample.cpp'); + await writeFile(source, 'int value;\n'); + const document = await vscode.workspace.openTextDocument(source); + documents.push(document); + return document; + } + + test("uses the active document's formatting mode even when called on another client", async () => { + const firstConfiguration = vscode.workspace.getConfiguration("C_Cpp", firstFolder.uri); + const secondConfiguration = vscode.workspace.getConfiguration("C_Cpp", secondFolder.uri); + const firstOriginal = firstConfiguration.inspect("formatting")?.workspaceFolderValue; + const secondOriginal = secondConfiguration.inspect("formatting")?.workspaceFolderValue; + const settingsFiles = [firstFolder, secondFolder].map(folder => path.join(folder.uri.fsPath, '.vscode/settings.json')); + const settingsContents = await Promise.all(settingsFiles.map(async file => { + try { + return await readFile(file); + } catch (error) { + if (error instanceof Error && 'code' in error && error.code === 'ENOENT') { + return undefined; + } + throw error; + } + })); + try { + await firstConfiguration.update("formatting", "clangFormat", vscode.ConfigurationTarget.WorkspaceFolder); + await secondConfiguration.update("formatting", "vcFormat", vscode.ConfigurationTarget.WorkspaceFolder); + const firstDocument = await createDocument(firstFolder, 'crlf'); + const secondDocument = await createDocument(secondFolder); + const firstOwner = extension.clients.getClientFor(firstDocument.uri); + const secondOwner = extension.clients.getClientFor(secondDocument.uri); + assert.notStrictEqual(firstOwner, secondOwner); + const editor = await vscode.window.showTextDocument(firstDocument, { preview: false }); + editor.options = { insertSpaces: true, tabSize: 4, indentSize: 4 }; + secondOwner.updateActiveDocumentTextOptions(); + assert.strictEqual(editor.options.insertSpaces, true); + assert.strictEqual(editor.options.tabSize, 4); + assert.strictEqual(firstDocument.eol, vscode.EndOfLine.LF); + + const secondEditor = await vscode.window.showTextDocument(secondDocument, { preview: false }); + secondEditor.options = { insertSpaces: true, tabSize: 4, indentSize: 4 }; + firstOwner.updateActiveDocumentTextOptions(); + assert.strictEqual(secondEditor.options.insertSpaces, false); + assert.strictEqual(secondEditor.options.tabSize, 3); + } finally { + await closeDocuments(); + await firstConfiguration.update("formatting", firstOriginal, vscode.ConfigurationTarget.WorkspaceFolder); + await secondConfiguration.update("formatting", secondOriginal, vscode.ConfigurationTarget.WorkspaceFolder); + for (let index = 0; index < settingsFiles.length; ++index) { + const content = settingsContents[index]; + if (content === undefined) { + await rm(settingsFiles[index], { force: true }); + } else { + await writeFile(settingsFiles[index], content); + } + } + } + }); + + test("uses one watcher owner for secondary didOpen and later visibility changes", async () => { + await extension.clients.getDefaultClient().onDidChangeVisibleTextEditors([]); + const document = await createDocument(secondFolder); + const editor = await vscode.window.showTextDocument(document, { preview: false }); + const owner = extension.clients.getClientFor(document.uri); + const defaultClient = extension.clients.getDefaultClient(); + assert.notStrictEqual(owner, defaultClient); + await defaultClient.onDidChangeVisibleTextEditors([]); + const sandbox = sinon.createSandbox(); + const updates = sandbox.spy(EditorConfigWatcher.prototype, "update"); + const creations = sandbox.spy(vscode.workspace, "createFileSystemWatcher"); + const trackedDocument = owner.TrackedDocuments.get(document.uri.toString()); + try { + sandbox.stub(owner, "takeOwnership"); + owner.TrackedDocuments.delete(document.uri.toString()); + const filter = createProtocolFilter(); + assert.ok(filter.didOpen); + await filter.didOpen(document, async () => { }); + await defaultClient.onDidChangeVisibleTextEditors([editor]); + assert.ok(updates.called); + assert.strictEqual(new Set(updates.thisValues).size, 1); + const disposals = creations.getCalls() + .filter(call => call.args[0] instanceof vscode.RelativePattern && call.args[0].pattern === '.editorconfig') + .map(call => sandbox.spy(call.returnValue, "dispose")); + assert.ok(disposals.length > 0); + await defaultClient.onDidChangeVisibleTextEditors([]); + for (const disposal of disposals) { + sinon.assert.calledOnce(disposal); + } + } finally { + if (trackedDocument) { + owner.TrackedDocuments.set(document.uri.toString(), trackedDocument); + } + sandbox.restore(); + } + }); + + test("restores ancestor watches when a visible document's workspace folder is removed", async () => { + const document = await createDocument(secondFolder); + const editor = await vscode.window.showTextDocument(document, { preview: false }); + await extension.clients.getDefaultClient().onDidChangeVisibleTextEditors([editor]); + const workspaceFile = vscode.workspace.workspaceFile ?? assert.fail("Workspace file is unavailable"); + const workspaceContents = await readFile(workspaceFile.fsPath); + const sandbox = sinon.createSandbox(); + const creations = sandbox.spy(vscode.workspace, "createFileSystemWatcher"); + + async function changeFolder(remove: boolean): Promise { + let subscription: vscode.Disposable | undefined; + const changed = new Promise(resolve => { + subscription = vscode.workspace.onDidChangeWorkspaceFolders(event => { + if ((remove ? event.removed : event.added).some(folder => folder.uri.toString() === secondFolder.uri.toString())) { + resolve(); + } + }); + }); + try { + assert.ok(vscode.workspace.updateWorkspaceFolders(secondFolder.index, remove ? 1 : 0, + ...remove ? [] : [{ uri: secondFolder.uri }]), "Workspace folder update should be accepted"); + await timeout(10000, changed); + } finally { + subscription?.dispose(); + } + } + + try { + await changeFolder(true); + assert.ok(vscode.window.visibleTextEditors.some(visible => visible.document === document), + "The document should remain visible after its workspace folder is removed"); + assert.ok(creations.getCalls().some(call => { + const pattern = call.args[0]; + return pattern instanceof vscode.RelativePattern && pattern.pattern === '.editorconfig' + && pattern.baseUri.fsPath === path.dirname(document.uri.fsPath); + }), "The visible document's newly external EditorConfig should be watched"); + } finally { + await closeDocuments(); + sandbox.restore(); + if (!vscode.workspace.getWorkspaceFolder(document.uri)) { + await changeFolder(false); + } + await writeFile(workspaceFile.fsPath, workspaceContents); + } + }); + +}); diff --git a/Extension/test/unit/clientCollection.test.ts b/Extension/test/unit/clientCollection.test.ts new file mode 100644 index 000000000..99b409427 --- /dev/null +++ b/Extension/test/unit/clientCollection.test.ts @@ -0,0 +1,60 @@ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. + * See 'LICENSE' in the project root for license information. + * ------------------------------------------------------------------------------------------ */ + +import { it } from 'mocha'; +import { strictEqual } from 'node:assert'; +import * as sinon from 'sinon'; +import proxyquire = require('proxyquire'); + +it('replays visible C++ editors to the replacement default client after recreation', async () => { + class StubClient { + public readonly RootFolder = undefined; + public readonly TrackedDocuments = new Map(); + public readonly deactivate = sinon.spy(); + public readonly dispose = sinon.spy(); + public readonly onDidChangeVisibleTextEditors = sinon.stub().resolves(); + } + + const cppEditor = { document: { languageId: 'cpp' } }; + const textEditor = { document: { languageId: 'plaintext' } }; + const visibleEditors = [cppEditor, textEditor]; + const createdClients: StubClient[] = []; + const subscription = { dispose: sinon.spy() }; + const { ClientCollection }: typeof import('../../src/LanguageServer/clientCollection') = proxyquire.noCallThru()( + '../../src/LanguageServer/clientCollection', { + vscode: { + window: { visibleTextEditors: visibleEditors }, + workspace: { onDidChangeWorkspaceFolders: () => subscription } + }, + '../common': { isCpp: (document: { languageId: string }) => document.languageId === 'cpp' }, + '../telemetry': {}, + '../Utility/Async/returns': { logAndReturn: { undefined: (error: unknown) => { throw error; } } }, + './client': { + createClient: () => { + const client = new StubClient(); + createdClients.push(client); + return client; + }, + DefaultClient: { stopLanguageClient: () => Promise.resolve() } + }, + './customProviders': { getCustomConfigProviders: () => [] }, + './timeTelemetryCollector': { TimeTelemetryCollector: class { } } + }); + const collection = new ClientCollection(); + try { + const oldClient = collection.getDefaultClient(); + await collection.recreateClients(); + strictEqual(createdClients.length, 2, 'The default client should be replaced once'); + strictEqual(collection.getDefaultClient(), createdClients[1], 'The replacement should become the default client'); + sinon.assert.calledOnce(createdClients[0].dispose); + sinon.assert.notCalled(createdClients[0].onDidChangeVisibleTextEditors); + sinon.assert.calledOnceWithExactly(createdClients[1].onDidChangeVisibleTextEditors, [cppEditor]); + strictEqual(visibleEditors.length, 2, 'Recreation should not change editor visibility'); + strictEqual(oldClient, createdClients[0], 'Only the isolated original client should be disposed'); + } finally { + await collection.dispose(); + } + sinon.assert.calledOnce(subscription.dispose); +}); diff --git a/Extension/test/unit/editorConfig.test.ts b/Extension/test/unit/editorConfig.test.ts new file mode 100644 index 000000000..5a859002f --- /dev/null +++ b/Extension/test/unit/editorConfig.test.ts @@ -0,0 +1,249 @@ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. + * See 'LICENSE' in the project root for license information. + * ------------------------------------------------------------------------------------------ */ + +import { afterEach, beforeEach, describe, it } from 'mocha'; +import { deepStrictEqual, ok, strictEqual } from 'node:assert'; +import { existsSync, mkdirSync, mkdtempSync, rmSync, unlinkSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join, sep } from 'node:path'; +import proxyquire = require('proxyquire'); +import { getIncludeCleanupPreferences } from '../../src/LanguageServer/includeCleanupEditorConfig'; + +type WatcherEvent = 'create' | 'change' | 'delete'; + +class TestWatcher { + public disposed = false; + private readonly listeners: Record void)[]> = { create: [], change: [], delete: [] }; + + constructor(public readonly directory: string) { } + + public onDidCreate(listener: () => void): void { this.listeners.create.push(listener); } + public onDidChange(listener: () => void): void { this.listeners.change.push(listener); } + public onDidDelete(listener: () => void): void { this.listeners.delete.push(listener); } + public fire(event: WatcherEvent): void { this.listeners[event].forEach(listener => listener()); } + public dispose(): void { + this.disposed = true; + this.listeners.create = []; + this.listeners.change = []; + this.listeners.delete = []; + } +} + +let workspaceDirectory: string | undefined; +const watchers: TestWatcher[] = []; +const vscode = { + Uri: { file: (fsPath: string) => ({ fsPath }) }, + RelativePattern: class { + constructor(public readonly baseUri: { fsPath: string }, public readonly pattern: string) { } + }, + workspace: { + getWorkspaceFolder: (uri: { fsPath: string }) => + workspaceDirectory && (uri.fsPath === workspaceDirectory || uri.fsPath.startsWith(workspaceDirectory + sep)) + ? { uri: { fsPath: workspaceDirectory } } : undefined, + createFileSystemWatcher: (pattern: { baseUri: { fsPath: string }; pattern: string }) => { + strictEqual(pattern.pattern, '.editorconfig'); + const watcher = new TestWatcher(pattern.baseUri.fsPath); + watchers.push(watcher); + return watcher; + } + } +}; + +const editorConfig: typeof import('../../src/LanguageServer/editorConfig') = proxyquire.noCallThru()( + '../../src/LanguageServer/editorConfig', { + vscode, + '../common': { checkFileExistsSync: existsSync } + }); + +describe('EditorConfig resolution and refresh', () => { + let directory: string; + + beforeEach(() => { + directory = mkdtempSync(join(tmpdir(), 'cpptools-editorconfig-')); + workspaceDirectory = undefined; + watchers.length = 0; + editorConfig.cachedEditorConfigSettings.clear(); + writeConfig('', 'root = true\n'); + }); + + afterEach(() => { + watchers.forEach(watcher => watcher.dispose()); + editorConfig.cachedEditorConfigSettings.clear(); + rmSync(directory, { recursive: true, force: true }); + }); + + function writeConfig(relativeDirectory: string, content: string): void { + const configDirectory = join(directory, relativeDirectory); + mkdirSync(configDirectory, { recursive: true }); + writeFileSync(join(configDirectory, '.editorconfig'), content); + } + + function getLevel(relativeFile = 'nested/sample.cpp'): string { + const settings = editorConfig.getEditorConfigSettings(join(directory, relativeFile)); + return getIncludeCleanupPreferences(settings).removeUnusedErrorTagType; + } + + function fire(directory: string, event: WatcherEvent): void { + const watcher = watchers.find(watcher => watcher.directory === directory && !watcher.disposed); + ok(watcher, `No active EditorConfig watcher for ${directory}`); + watcher.fire(event); + } + + it('lets a closer wildcard section disable an inherited warning', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + writeConfig('nested', '[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + strictEqual(getLevel(), 'none'); + }); + + it('uses the last matching section instead of the first', () => { + writeConfig('', 'root = true\n[*.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n' + + '[sample.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = error\n'); + strictEqual(getLevel(), 'error'); + }); + + it('preserves the ordering of repeated wildcard sections', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n' + + '[*.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = error\n' + + '[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + strictEqual(getLevel(), 'none'); + }); + + it('lets a later wildcard section override a specific section', () => { + writeConfig('', 'root = true\n[*.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = error\n' + + '[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + strictEqual(getLevel(), 'none'); + }); + + it('lets a closer section unset the inherited diagnostic level', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + writeConfig('nested', '[*.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = unset\n'); + strictEqual(getLevel(), 'none'); + }); + + it('removes winning unset values for formatting and Include Cleanup', () => { + writeConfig('', 'root = true\n[*.cpp]\nend_of_line = lf\nindent_size = 4\n' + + 'cpp_include_cleanup_remove_unused_error_tag_type = warning\n' + + '[sample.cpp]\nend_of_line = unset\nindent_size = UnSeT\ncpp_include_cleanup_remove_unused_error_tag_type = unset\n'); + const settings = editorConfig.getEditorConfigSettings(join(directory, 'sample.cpp')); + strictEqual(Object.hasOwn(settings, 'end_of_line'), false); + strictEqual(Object.hasOwn(settings, 'indent_size'), false); + strictEqual(Object.hasOwn(settings, 'cpp_include_cleanup_remove_unused_error_tag_type'), false); + strictEqual(getIncludeCleanupPreferences(settings).removeUnusedErrorTagType, 'none'); + }); + + it('does not restore ancestor values after a closer config unsets them', () => { + writeConfig('', 'root = true\n[*]\nend_of_line = crlf\nindent_style = tab\nindent_size = 8\n'); + writeConfig('nested', '[*.cpp]\nend_of_line = unset\nindent_size = unset\n'); + const settings = editorConfig.getEditorConfigSettings(join(directory, 'nested/sample.cpp')); + strictEqual(Object.hasOwn(settings, 'end_of_line'), false); + strictEqual(Object.hasOwn(settings, 'indent_size'), false); + strictEqual(settings.indent_style, 'tab'); + }); + + it('preserves a concrete value that overrides an earlier unset', () => { + writeConfig('', 'root = true\n[*]\nend_of_line = unset\nindent_size = unset\n' + + '[*.cpp]\nend_of_line = lf\nindent_size = 4\n'); + const settings = editorConfig.getEditorConfigSettings(join(directory, 'sample.cpp')); + strictEqual(settings.end_of_line, 'lf'); + strictEqual(settings.indent_size, 4); + }); + + it('preserves formatting inheritance and stops at root true', () => { + writeConfig('', 'root = true\n[*]\nindent_style = tab\nindent_size = 8\n'); + writeConfig('nested', '[*.cpp]\nindent_size = 4\n'); + const inherited = editorConfig.getEditorConfigSettings(join(directory, 'nested/sample.cpp')); + strictEqual(inherited.indent_style, 'tab'); + strictEqual(inherited.indent_size, 4); + writeConfig('nested', 'root = true\n[*.cpp]\nindent_size = 2\n'); + editorConfig.cachedEditorConfigSettings.clear(); + const rooted = editorConfig.getEditorConfigSettings(join(directory, 'nested/sample.cpp')); + strictEqual(rooted.indent_style, undefined); + strictEqual(rooted.indent_size, 2); + strictEqual(rooted.root, true); + }); + + it('matches property names case-insensitively without changing path values', async () => { + writeConfig('', 'ROOT = TRUE\n[*]\nCPP_INCLUDE_CLEANUP_REMOVE_UNUSED_ERROR_TAG_TYPE = warning\n' + + 'cpp_include_cleanup_excluded_files = MixedCase.h\n[*.cpp]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + const settings = editorConfig.getEditorConfigSettings(join(directory, 'sample.cpp')); + strictEqual(getIncludeCleanupPreferences(settings).removeUnusedErrorTagType, 'none'); + strictEqual(getIncludeCleanupPreferences(settings).excludedFiles, 'MixedCase.h'); + strictEqual(settings.root, true); + }); + + it('refreshes cached single-file preferences when an applicable config changes', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + const file = join(directory, 'sample.cpp'); + let refreshedLevel = ''; + const watcher = new editorConfig.EditorConfigWatcher(() => { + refreshedLevel = getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType; + }); + watcher.update([file]); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'warning'); + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + fire(directory, 'change'); + strictEqual(refreshedLevel, 'none'); + watcher.dispose(); + }); + + it('watches parent configs outside the workspace without duplicating workspace watches', () => { + workspaceDirectory = join(directory, 'workspace'); + mkdirSync(workspaceDirectory); + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + const file = join(workspaceDirectory, 'sample.cpp'); + let refreshed = 0; + const watcher = new editorConfig.EditorConfigWatcher(() => { ++refreshed; }); + watcher.update([file]); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'warning'); + strictEqual(watchers.some(watcher => watcher.directory === workspaceDirectory), false); + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + fire(directory, 'change'); + strictEqual(refreshed, 1); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'none'); + watcher.dispose(); + }); + + it('invalidates preferences for newly created and deleted closer configs', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + mkdirSync(join(directory, 'nested')); + const file = join(directory, 'nested/sample.cpp'); + const watcher = new editorConfig.EditorConfigWatcher(() => { }); + watcher.update([file]); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'warning'); + writeConfig('nested', '[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + fire(join(directory, 'nested'), 'create'); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'none'); + unlinkSync(join(directory, 'nested/.editorconfig')); + fire(join(directory, 'nested'), 'delete'); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'warning'); + watcher.dispose(); + }); + + it('deduplicates ancestor watches and releases them when no documents are visible', () => { + const watcher = new editorConfig.EditorConfigWatcher(() => { }); + const files = [join(directory, 'first.cpp'), join(directory, 'second.cpp')]; + strictEqual(watcher.update(files), true); + const initialWatchers = [...watchers]; + strictEqual(watcher.update(files), false); + deepStrictEqual(watchers, initialWatchers); + watcher.update([]); + strictEqual(watchers.every(watcher => watcher.disposed), true); + watcher.dispose(); + }); + + it('re-reads preferences after the file was hidden while its config changed', () => { + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = warning\n'); + const file = join(directory, 'sample.cpp'); + const watcher = new editorConfig.EditorConfigWatcher(() => { }); + watcher.update([file]); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'warning'); + watcher.update([]); + writeConfig('', 'root = true\n[*]\ncpp_include_cleanup_remove_unused_error_tag_type = none\n'); + watcher.update([file]); + strictEqual(getIncludeCleanupPreferences(editorConfig.getEditorConfigSettings(file)).removeUnusedErrorTagType, 'none'); + watcher.dispose(); + strictEqual(watchers.every(watcher => watcher.disposed), true); + }); +}); diff --git a/Extension/test/unit/includeCleanupEditorConfig.test.ts b/Extension/test/unit/includeCleanupEditorConfig.test.ts index cf9ccdf74..a1d5aef0e 100644 --- a/Extension/test/unit/includeCleanupEditorConfig.test.ts +++ b/Extension/test/unit/includeCleanupEditorConfig.test.ts @@ -18,7 +18,8 @@ describe('Include Cleanup editorconfig settings', () => { alternateFiles: 'umbrella.h:internal.h', excludedFiles: 'generated.h', replacementFiles: 'stdio.h:cstdio', - requiredFiles: 'atlwin.h:atlbase.h' + requiredFiles: 'atlwin.h:atlbase.h', + removeUnusedErrorTagType: 'none' }); }); @@ -27,12 +28,14 @@ describe('Include Cleanup editorconfig settings', () => { CPP_INCLUDE_CLEANUP_ALTERNATE_FILES: 'umbrella.h:internal.h', Cpp_Include_Cleanup_Excluded_Files: 'generated.h', cpp_INCLUDE_cleanup_REPLACEMENT_files: 'stdio.h:cstdio', - CPP_include_cleanup_required_FILES: 'atlwin.h:atlbase.h' + CPP_include_cleanup_required_FILES: 'atlwin.h:atlbase.h', + CPP_INCLUDE_CLEANUP_REMOVE_UNUSED_ERROR_TAG_TYPE: 'DiMmEd' }), { alternateFiles: 'umbrella.h:internal.h', excludedFiles: 'generated.h', replacementFiles: 'stdio.h:cstdio', - requiredFiles: 'atlwin.h:atlbase.h' + requiredFiles: 'atlwin.h:atlbase.h', + removeUnusedErrorTagType: 'dimmed' }); }); @@ -40,12 +43,38 @@ describe('Include Cleanup editorconfig settings', () => { deepStrictEqual(getIncludeCleanupPreferences({ cpp_include_cleanup_alternate_files: 'unset', cpp_include_cleanup_excluded_files: true, - cpp_include_cleanup_replacement_files: 42 + cpp_include_cleanup_replacement_files: 42, + cpp_include_cleanup_remove_unused_error_tag_type: 'UNSET' }), { alternateFiles: '', excludedFiles: '', replacementFiles: '', - requiredFiles: '' + requiredFiles: '', + removeUnusedErrorTagType: 'none' }); }); + + it('defaults unused-include suggestions to none without EditorConfig settings', () => { + deepStrictEqual(getIncludeCleanupPreferences(undefined), { + alternateFiles: '', + excludedFiles: '', + replacementFiles: '', + requiredFiles: '', + removeUnusedErrorTagType: 'none' + }); + }); + + for (const level of ['none', 'suggestion', 'warning', 'error', 'dimmed']) { + it(`transports the ${level} unused-include diagnostic level`, () => { + deepStrictEqual(getIncludeCleanupPreferences({ + cpp_include_cleanup_remove_unused_error_tag_type: level + }), { + alternateFiles: '', + excludedFiles: '', + replacementFiles: '', + requiredFiles: '', + removeUnusedErrorTagType: level + }); + }); + } }); diff --git a/Extension/yarn.lock b/Extension/yarn.lock index a946189da..3ff3e2df0 100644 --- a/Extension/yarn.lock +++ b/Extension/yarn.lock @@ -66,9 +66,9 @@ tslib "^2.6.2" "@azure/identity@^4.13.2": - version "4.13.3" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.13.3.tgz#f7781be089dc6231e17ae1454b9a1e91bc797b81" - integrity sha1-93gb4IncYjHheuFFS5oekbx5e4E= + version "4.14.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.14.1.tgz#12cf11210b5341887ba27883501bda1e5c00c8b0" + integrity sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ== dependencies: "@azure/abort-controller" "^2.0.0" "@azure/core-auth" "^1.9.0" @@ -79,8 +79,8 @@ "@azure/core-util" "^1.11.0" "@azure/logger" "^1.0.0" "@azure/msal-browser" "^5.5.0" - "@azure/msal-node" "^6.0.0" - open "^10.1.0" + "@azure/msal-node" "^7.1.0" + open "^11.0.0" tslib "^2.2.0" "@azure/logger@^1.0.0", "@azure/logger@^1.3.0": @@ -103,12 +103,17 @@ resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-16.14.0.tgz#cdddb38d832be0e1be6227ea64d4eb119997227c" integrity sha1-zd2zjYMr4OG+YifqZNTrEZmXInw= -"@azure/msal-node@^6.0.0": - version "6.0.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-6.0.0.tgz#581a95682a41456c26f3dbd5329891fbd3eb102e" - integrity sha1-WBqVaCpBRWwm89vVMpiR+9PrEC4= +"@azure/msal-common@16.14.3": + version "16.14.3" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-16.14.3.tgz#dbf1a58a8635ca5900d8f89b20a7e032f59e3f61" + integrity sha512-tz3GvMrR9V/plb2lDdW8qaO8CPpfZevdExBKjltzzbAtyhK0eB2UIvji1aU+gkyHj3fxQ2ie+LNHyMXdmo8wOg== + +"@azure/msal-node@^7.1.0": + version "7.1.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-7.1.1.tgz#fe0ee4e69e2361fdb89b9003a7e233d9ef4aa783" + integrity sha512-zHXTJB38XVrsNaXrPBCMqEUjeyQysFfgmKtUHRDsEKTRjNIPckJ/w6fE5wBXrmJXBim1D3C7O7LOag0msPTrgw== dependencies: - "@azure/msal-common" "16.14.0" + "@azure/msal-common" "16.14.3" jsonwebtoken "^9.0.0" "@cacheable/memory@^2.2.0": @@ -319,6 +324,11 @@ resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@humanwhocodes/retry/-/retry-0.4.3.tgz#c2b9d2e374ee62c586d3adbea87199b1d7a7a6ba" integrity "sha1-wrnS43TuYsWG062+qHGZsdenpro= sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==" +"@isaacs/nonrecursive-glob-match@^1.1.0": + version "1.1.0" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz#b1d69b8938aab4c292f7fde628c47dc1dbd737ef" + integrity sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw== + "@jridgewell/gen-mapping@^0.3.5": version "0.3.13" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" @@ -842,12 +852,12 @@ dependencies: undici-types "~7.18.0" -"@types/node@^20.14.2": - version "20.19.35" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@types/node/-/node-20.19.35.tgz#117b373fd1dff528b2f9f8c2d1a85de6af8101ca" - integrity "sha1-EXs3P9Hf9Siy+fjC0ahd5q+BAco= sha512-Uarfe6J91b9HAUXxjvSOdiO2UPOKLm07Q1oh0JHxoZ1y8HoqxDAu3gVrsrOHeiio0kSsoVBt4wFrKOm0dKxVPQ==" +"@types/node@^18.19.130": + version "18.19.130" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@types/node/-/node-18.19.130.tgz#da4c6324793a79defb7a62cba3947ec5add00d59" + integrity "sha1-2kxjJHk6ed77emLLo5R+xa3QDVk= sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==" dependencies: - undici-types "~6.21.0" + undici-types "~5.26.4" "@types/plist@^3.0.5": version "3.0.5" @@ -1723,7 +1733,7 @@ brace-expansion@^2.0.1: dependencies: balanced-match "^1.0.0" -brace-expansion@^5.0.2, brace-expansion@^5.0.8: +brace-expansion@^5.0.12: version "5.0.12" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/brace-expansion/-/brace-expansion-5.0.12.tgz#995fbb4750a77c4d16a7dc942ff2ca6ef8e675ec" integrity sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ== @@ -1866,6 +1876,11 @@ chrome-trace-event@^1.0.2: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz#05bffd7ff928465093314708c93bdfa9bd1f0f5b" integrity "sha1-Bb/9f/koRlCTMUcIyTvfqb0fD1s= sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==" +cjs-module-lexer@^2.2.1: + version "2.3.0" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/cjs-module-lexer/-/cjs-module-lexer-2.3.0.tgz#4eb71c63d5f70f0b1d8a39a595c134a6692493f2" + integrity sha512-lmNyBzi6iYiqyrExTctfmjd8tInx+dHu9PBomTfH5RXS53c27JMFJgzNv5TyAnm3PgGf+MLy0+Ws41/HlVxdKQ== + cli-cursor@^5.0.0: version "5.0.0" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/cli-cursor/-/cli-cursor-5.0.0.tgz#24a4831ecf5a6b01ddeb32fb71a4b2088b0dce38" @@ -2066,10 +2081,10 @@ default-browser-id@^5.0.0: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/default-browser-id/-/default-browser-id-5.0.1.tgz#f7a7ccb8f5104bf8e0f71ba3b1ccfa5eafdb21e8" integrity "sha1-96fMuPUQS/jg9xujscz6Xq/bIeg= sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==" -default-browser@^5.2.1: - version "5.5.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/default-browser/-/default-browser-5.5.0.tgz#2792e886f2422894545947cc80e1a444496c5976" - integrity "sha1-J5LohvJCKJRUWUfMgOGkRElsWXY= sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==" +default-browser@^5.5.1: + version "5.5.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/default-browser/-/default-browser-5.5.1.tgz#1790affc52680fbb11e17cab2752d69aa2a37d2c" + integrity sha1-F5Cv/FJoD7sR4XyrJ1LWmqKjfSw= dependencies: bundle-name "^4.1.0" default-browser-id "^5.0.0" @@ -2232,6 +2247,11 @@ es-module-lexer@^2.0.0: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/es-module-lexer/-/es-module-lexer-2.0.0.tgz#f657cd7a9448dcdda9c070a3cb75e5dc1e85f5b1" integrity "sha1-9lfNepRI3N2pwHCjy3Xl3B6F9bE= sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==" +es-module-lexer@^3.0.3: + version "3.0.4" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/es-module-lexer/-/es-module-lexer-3.0.4.tgz#157174100418c206cd1c5d142e5a3be849b845b9" + integrity sha512-BldNY5mwkVu+cQ5Ymn3e6hB9Sx8XHx4ZevWbiUyZbfKxJxYO27Hf0wfzkxIaD5CAJMaGl3YspKELj0ff/7nCMA== + es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" @@ -2277,17 +2297,19 @@ eslint-plugin-header@^3.1.1: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz#6ce512432d57675265fac47292b50d1eff11acd6" integrity "sha1-bOUSQy1XZ1Jl+sRykrUNHv8RrNY= sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==" -eslint-plugin-import-x@^4.17.1: - version "4.17.1" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/eslint-plugin-import-x/-/eslint-plugin-import-x-4.17.1.tgz#6e9211acd8e98d2da11f96c12c9c00aa49e3e035" - integrity sha1-bpIRrNjpjS2hH5bBLJwAqknj4DU= +eslint-plugin-import-x@^4.18.0: + version "4.18.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/eslint-plugin-import-x/-/eslint-plugin-import-x-4.18.1.tgz#f380dbf2d33244f39cb29ad947cdc5afdc96b88c" + integrity sha512-D1h++38NS2Z40zf8jbd2OHqDrnIFRKpdp8sL0jP4xSDGZj6MNwEQua8F+r3tOWjcHrsWuhHOJ7wASWioJ31tfg== dependencies: "@typescript-eslint/types" "^8.56.0" + cjs-module-lexer "^2.2.1" comment-parser "^1.4.1" debug "^4.4.1" + es-module-lexer "^3.0.3" eslint-import-context "^0.1.9" is-glob "^4.0.3" - minimatch "^9.0.3 || ^10.1.2" + minimatch "^9.0.3 || ^10.1.2 || ^11.0.1" semver "^7.7.2" stable-hash-x "^0.2.0" unrs-resolver "^1.9.2" @@ -2530,10 +2552,10 @@ fast-levenshtein@^3.0.0: dependencies: fastest-levenshtein "^1.0.7" -fast-uri@^3.0.1, fast-uri@^3.1.8: - version "3.1.8" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/fast-uri/-/fast-uri-3.1.8.tgz#f7db8d942e20eead3cfe93b0beeb4eb0169e938b" - integrity sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg== +fast-uri@^3.0.1, fast-uri@^3.1.9: + version "3.1.9" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/fast-uri/-/fast-uri-3.1.9.tgz#f1deba822b1d6ac79da2f860e872a63470cff203" + integrity sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ== fastest-levenshtein@^1.0.12, fastest-levenshtein@^1.0.7: version "1.0.16" @@ -3148,6 +3170,11 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-in-ssh@^1.0.0: + version "1.0.0" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-in-ssh/-/is-in-ssh-1.0.0.tgz#8eb73c1cabba77748d389588eeea132a63057622" + integrity sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw== + is-inside-container@^1.0.0: version "1.0.0" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-inside-container/-/is-inside-container-1.0.0.tgz#e81fba699662eb31dbdaf26766a61d4814717ea4" @@ -3600,19 +3627,13 @@ mimic-function@^5.0.0: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/mimic-function/-/mimic-function-5.0.1.tgz#acbe2b3349f99b9deaca7fb70e48b83e94e67076" integrity "sha1-rL4rM0n5m53qyn+3Dki4PpTmcHY= sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==" -minimatch@^10.2.2: - version "10.2.4" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.4.tgz#465b3accbd0218b8281f5301e27cedc697f96fde" - integrity "sha1-Rls6zL0CGLgoH1MB4nztxpf5b94= sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==" +minimatch@11.0.5, minimatch@^10.2.2, minimatch@^10.2.4, minimatch@^10.2.5, minimatch@^10.2.6, "minimatch@^9.0.3 || ^10.1.2 || ^11.0.1": + version "11.0.5" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-11.0.5.tgz#29589e94fc4d84193b2a31b082b0ec67b5ea1d42" + integrity sha512-snPlVppFcYWfLLFQGhDxUyBcHNtMlWmn3jtj7pEaO+DP8pqL0IvAzXhMYmn1z9ASNtgmwLBdFxSf4tMUB0OTKA== dependencies: - brace-expansion "^5.0.2" - -minimatch@^10.2.4, minimatch@^10.2.5, minimatch@^10.2.6, "minimatch@^9.0.3 || ^10.1.2": - version "10.2.6" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz#fd956bbe0b77241e9f15ac5dccb1c638060968ef" - integrity sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8= - dependencies: - brace-expansion "^5.0.8" + "@isaacs/nonrecursive-glob-match" "^1.1.0" + brace-expansion "^5.0.12" minimatch@^3.0.4, minimatch@^3.1.1: version "3.1.5" @@ -3838,15 +3859,17 @@ onetime@^7.0.0: dependencies: mimic-function "^5.0.0" -open@^10.1.0: - version "10.2.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-10.2.0.tgz#b9d855be007620e80b6fb05fac98141fe62db73c" - integrity "sha1-udhVvgB2IOgLb7BfrJgUH+Yttzw= sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==" +open@^11.0.0: + version "11.0.4" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-11.0.4.tgz#10d20dfdb558c71e5149b2d789ad6995caf697ca" + integrity sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg== dependencies: - default-browser "^5.2.1" + default-browser "^5.5.1" define-lazy-prop "^3.0.0" + is-in-ssh "^1.0.0" is-inside-container "^1.0.0" - wsl-utils "^0.1.0" + powershell-utils "^0.2.1" + wsl-utils "^1.0.0" optionator@^0.9.3: version "0.9.4" @@ -4065,6 +4088,11 @@ posix-getopt@^1.2.1: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/posix-getopt/-/posix-getopt-1.2.1.tgz#bc50e67335eb5e4be8d937210b95a211bc26f083" integrity "sha1-vFDmczXrXkvo2TchC5WiEbwm8IM= sha512-BbGTiH8MOWAuc6h5yITkSn9k3HP4+QOCV9t6I5F62OrH7zqTHRo08QNsgELRreTBxcvRhbSpMoUnAx77Dz4yUA==" +powershell-utils@^0.2.0, powershell-utils@^0.2.1: + version "0.2.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/powershell-utils/-/powershell-utils-0.2.1.tgz#0853016f5b3c12d52b9571c8fe8059677d9ddbe2" + integrity sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A== + prelude-ls@^1.2.1: version "1.2.1" resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -4131,9 +4159,9 @@ qified@^0.10.1: hookified "^2.1.1" qs@^6.9.1: - version "6.16.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/qs/-/qs-6.16.0.tgz#c22c723a28a920f3aacdce8289fabd43eccb79fd" - integrity "sha1-wixyOiipIPOqzc6Cifq9Q+zLef0= sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==" + version "6.16.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/qs/-/qs-6.16.1.tgz#0643e17993e551759c85078e1f0bc4b9fe908020" + integrity sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg== dependencies: es-define-property "^1.0.1" side-channel "^1.1.1" @@ -4373,10 +4401,10 @@ semver@^7.7.2, semver@^7.7.4, semver@^7.8.5: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/semver/-/semver-7.8.5.tgz#39b646037dd50c14fb451e7e4cac58ed8b863f69" integrity sha1-ObZGA33VDBT7RR5+TKxY7YuGP2k= -serialize-javascript@^6.0.2, serialize-javascript@^7.0.5: - version "7.0.5" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/serialize-javascript/-/serialize-javascript-7.0.5.tgz#c798cc0552ffbb08981914a42a8756e339d0d5b1" - integrity "sha1-x5jMBVL/uwiYGRSkKodW4znQ1bE= sha512-F4LcB0UqUl1zErq+1nYEEzSHJnIwb3AF2XWB94b+afhrekOUijwooAYqFyRbjYkm2PAKBabx6oYv/xDxNi8IBw==" +serialize-javascript@^6.0.2, serialize-javascript@^7.1.3: + version "7.1.3" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/serialize-javascript/-/serialize-javascript-7.1.3.tgz#c8f3a5355d5c52d76f4d61389172747a71f22ef6" + integrity sha512-kYEnegpAxWFjUw3dSYdSM9zVlTrsxDbsSkq/qd3B7VanqyJ+JdDy6qVyuqVGBhSfuD/rLZQEKuXsO5KZFCrVYQ== set-function-length@^1.2.2: version "1.2.2" @@ -4923,10 +4951,10 @@ undertaker@^2.0.0: last-run "^2.0.0" undertaker-registry "^2.0.0" -undici-types@~6.21.0: - version "6.21.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" - integrity "sha1-aR0ArzkJvpOn+qE75hs6W1DvEss= sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity "sha1-vNU5iT0AtW6WT9JlekhmsiGmVhc= sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" undici-types@~7.18.0: version "7.18.2" @@ -5318,12 +5346,13 @@ wrappy@1: resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" -wsl-utils@^0.1.0: - version "0.1.0" - resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-0.1.0.tgz#8783d4df671d4d50365be2ee4c71917a0557baab" - integrity "sha1-h4PU32cdTVA2W+LuTHGRegVXuqs= sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==" +wsl-utils@^1.0.0: + version "1.0.1" + resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-1.0.1.tgz#7caaa5a713e5ed1b625e7ee95e505c53c2e41c80" + integrity sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ== dependencies: is-wsl "^3.1.0" + powershell-utils "^0.2.0" xml2js@^0.5.0: version "0.5.0" diff --git a/ExtensionPack/package-lock.json b/ExtensionPack/package-lock.json index 84801a2e7..d568d6d03 100644 --- a/ExtensionPack/package-lock.json +++ b/ExtensionPack/package-lock.json @@ -120,9 +120,9 @@ } }, "node_modules/@azure/identity": { - "version": "4.13.2", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.13.2.tgz", - "integrity": "sha1-zq1+af9YbcKL67rqIgG2u2lguE8=", + "version": "4.14.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.14.1.tgz", + "integrity": "sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ==", "dev": true, "license": "MIT", "dependencies": { @@ -135,8 +135,8 @@ "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", "@azure/msal-browser": "^5.5.0", - "@azure/msal-node": "^5.1.5", - "open": "^10.1.0", + "@azure/msal-node": "^7.1.0", + "open": "^11.0.0", "tslib": "^2.2.0" }, "engines": { @@ -181,13 +181,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "5.6.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-5.6.0.tgz", - "integrity": "sha1-jL/v8CG20vPQZKOvuCJirZhehDQ=", + "version": "7.1.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-7.1.1.tgz", + "integrity": "sha512-zHXTJB38XVrsNaXrPBCMqEUjeyQysFfgmKtUHRDsEKTRjNIPckJ/w6fE5wBXrmJXBim1D3C7O7LOag0msPTrgw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "16.13.0", + "@azure/msal-common": "16.14.3", "jsonwebtoken": "^9.0.0" }, "engines": { @@ -195,15 +195,22 @@ } }, "node_modules/@azure/msal-node/node_modules/@azure/msal-common": { - "version": "16.13.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-16.13.0.tgz", - "integrity": "sha1-YuQkxrIeFD6O9DdKZNv4dy3+Ggc=", + "version": "16.14.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-16.14.3.tgz", + "integrity": "sha512-tz3GvMrR9V/plb2lDdW8qaO8CPpfZevdExBKjltzzbAtyhK0eB2UIvji1aU+gkyHj3fxQ2ie+LNHyMXdmo8wOg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz", + "integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@napi-rs/keyring": { "version": "1.3.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@napi-rs/keyring/-/keyring-1.3.0.tgz", @@ -807,9 +814,9 @@ "license": "BSD-3-Clause" }, "node_modules/bundle-name": { - "version": "4.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bundle-name/-/bundle-name-4.1.0.tgz", - "integrity": "sha1-87lrNBYNZDGhnXaIE1r3z7h5eIk=", + "version": "4.1.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", "dev": true, "license": "MIT", "dependencies": { @@ -1192,6 +1199,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-inside-container": { "version": "1.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-inside-container/-/is-inside-container-1.0.0.tgz", @@ -1397,13 +1417,14 @@ } }, "node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8=", + "version": "11.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-11.0.3.tgz", + "integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.8" + "@isaacs/nonrecursive-glob-match": "^1.0.3", + "brace-expansion": "^5.0.12" }, "engines": { "node": "18 || 20 || >=22" @@ -1440,19 +1461,21 @@ } }, "node_modules/open": { - "version": "10.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-10.2.0.tgz", - "integrity": "sha1-udhVvgB2IOgLb7BfrJgUH+Yttzw=", + "version": "11.0.4", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-11.0.4.tgz", + "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==", "dev": true, "license": "MIT", "dependencies": { - "default-browser": "^5.2.1", + "default-browser": "^5.5.1", "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", "is-inside-container": "^1.0.0", - "wsl-utils": "^0.1.0" + "powershell-utils": "^0.2.1", + "wsl-utils": "^1.0.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -1491,6 +1514,19 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/powershell-utils": { + "version": "0.2.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/powershell-utils/-/powershell-utils-0.2.1.tgz", + "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/proper-lockfile": { "version": "4.1.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/proper-lockfile/-/proper-lockfile-4.1.2.tgz", @@ -1783,16 +1819,17 @@ } }, "node_modules/wsl-utils": { - "version": "0.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-0.1.0.tgz", - "integrity": "sha1-h4PU32cdTVA2W+LuTHGRegVXuqs=", + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-1.0.1.tgz", + "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==", "dev": true, "license": "MIT", "dependencies": { - "is-wsl": "^3.1.0" + "is-wsl": "^3.1.0", + "powershell-utils": "^0.2.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" diff --git a/ExtensionPack/package.json b/ExtensionPack/package.json index 687880b73..0f25dd7e5 100644 --- a/ExtensionPack/package.json +++ b/ExtensionPack/package.json @@ -43,5 +43,10 @@ ], "devDependencies": { "@vscode/vsce": "4.0.0" + }, + "overrides": { + "@vscode/vsce": { + "minimatch": "11.0.3" + } } } diff --git a/Themes/package-lock.json b/Themes/package-lock.json index 603165d97..e46eca37d 100644 --- a/Themes/package-lock.json +++ b/Themes/package-lock.json @@ -120,9 +120,9 @@ } }, "node_modules/@azure/identity": { - "version": "4.13.3", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.13.3.tgz", - "integrity": "sha1-93gb4IncYjHheuFFS5oekbx5e4E=", + "version": "4.14.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/identity/-/identity-4.14.1.tgz", + "integrity": "sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ==", "dev": true, "license": "MIT", "dependencies": { @@ -135,8 +135,8 @@ "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", "@azure/msal-browser": "^5.5.0", - "@azure/msal-node": "^6.0.0", - "open": "^10.1.0", + "@azure/msal-node": "^7.1.0", + "open": "^11.0.0", "tslib": "^2.2.0" }, "engines": { @@ -181,19 +181,36 @@ } }, "node_modules/@azure/msal-node": { - "version": "6.0.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-6.0.0.tgz", - "integrity": "sha1-WBqVaCpBRWwm89vVMpiR+9PrEC4=", + "version": "7.1.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-7.1.1.tgz", + "integrity": "sha512-zHXTJB38XVrsNaXrPBCMqEUjeyQysFfgmKtUHRDsEKTRjNIPckJ/w6fE5wBXrmJXBim1D3C7O7LOag0msPTrgw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "16.14.0", + "@azure/msal-common": "16.14.3", "jsonwebtoken": "^9.0.0" }, "engines": { "node": ">=20" } }, + "node_modules/@azure/msal-node/node_modules/@azure/msal-common": { + "version": "16.14.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-16.14.3.tgz", + "integrity": "sha512-tz3GvMrR9V/plb2lDdW8qaO8CPpfZevdExBKjltzzbAtyhK0eB2UIvji1aU+gkyHj3fxQ2ie+LNHyMXdmo8wOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz", + "integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@napi-rs/keyring": { "version": "1.3.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@napi-rs/keyring/-/keyring-1.3.0.tgz", @@ -797,9 +814,9 @@ "license": "BSD-3-Clause" }, "node_modules/bundle-name": { - "version": "4.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bundle-name/-/bundle-name-4.1.0.tgz", - "integrity": "sha1-87lrNBYNZDGhnXaIE1r3z7h5eIk=", + "version": "4.1.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", "dev": true, "license": "MIT", "dependencies": { @@ -1182,6 +1199,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-inside-container": { "version": "1.0.0", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/is-inside-container/-/is-inside-container-1.0.0.tgz", @@ -1387,13 +1417,14 @@ } }, "node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha1-/ZVrvgt3JB6fFaxdzLHGOAYJaO8=", + "version": "11.0.3", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-11.0.3.tgz", + "integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.8" + "@isaacs/nonrecursive-glob-match": "^1.0.3", + "brace-expansion": "^5.0.12" }, "engines": { "node": "18 || 20 || >=22" @@ -1430,19 +1461,21 @@ } }, "node_modules/open": { - "version": "10.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-10.2.0.tgz", - "integrity": "sha1-udhVvgB2IOgLb7BfrJgUH+Yttzw=", + "version": "11.0.4", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/open/-/open-11.0.4.tgz", + "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==", "dev": true, "license": "MIT", "dependencies": { - "default-browser": "^5.2.1", + "default-browser": "^5.5.1", "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", "is-inside-container": "^1.0.0", - "wsl-utils": "^0.1.0" + "powershell-utils": "^0.2.1", + "wsl-utils": "^1.0.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -1481,6 +1514,19 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/powershell-utils": { + "version": "0.2.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/powershell-utils/-/powershell-utils-0.2.1.tgz", + "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/proper-lockfile": { "version": "4.1.2", "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/proper-lockfile/-/proper-lockfile-4.1.2.tgz", @@ -1494,9 +1540,9 @@ } }, "node_modules/qs": { - "version": "6.16.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/qs/-/qs-6.16.0.tgz", - "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", + "version": "6.16.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/qs/-/qs-6.16.1.tgz", + "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -1773,16 +1819,17 @@ } }, "node_modules/wsl-utils": { - "version": "0.1.0", - "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-0.1.0.tgz", - "integrity": "sha1-h4PU32cdTVA2W+LuTHGRegVXuqs=", + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/wsl-utils/-/wsl-utils-1.0.1.tgz", + "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==", "dev": true, "license": "MIT", "dependencies": { - "is-wsl": "^3.1.0" + "is-wsl": "^3.1.0", + "powershell-utils": "^0.2.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" diff --git a/Themes/package.json b/Themes/package.json index 2bbad273a..540128bac 100644 --- a/Themes/package.json +++ b/Themes/package.json @@ -63,9 +63,12 @@ ] }, "devDependencies": { - "@vscode/vsce": "4.0.0" + "@vscode/vsce": "4.0.0" }, "overrides": { - "fast-uri": "^3.1.6" + "fast-uri": "^3.1.6", + "@vscode/vsce": { + "minimatch": "11.0.3" + } } }