Skip to content

Commit ca3725d

Browse files
committed
Upgrade minimatch version
1 parent 2abaa0f commit ca3725d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Extension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6517,7 +6517,7 @@
65176517
"devDependencies": {
65186518
"@octokit/rest": "^20.1.1",
65196519
"@types/glob": "^7.2.0",
6520-
"@types/minimatch": "^3.0.5",
6520+
"@types/minimatch": "^5.1.2",
65216521
"@types/mocha": "^10.0.6",
65226522
"@types/node": "^20.14.2",
65236523
"@types/node-fetch": "^2.6.11",
@@ -6569,7 +6569,7 @@
65696569
"comment-json": "^4.2.3",
65706570
"escape-string-regexp": "^2.0.0",
65716571
"glob": "^7.2.3",
6572-
"minimatch": "^3.0.5",
6572+
"minimatch": "^10.0.1",
65736573
"mkdirp": "^3.0.1",
65746574
"node-fetch": "^2.7.0",
65756575
"node-loader": "^2.0.0",

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,8 @@ export class DefaultClient implements Client {
25712571
}
25722572
let foundGlobMatch: boolean = false;
25732573
for (const assoc in assocs) {
2574-
if (minimatch(filePath, assoc)) {
2574+
const matcher = new minimatch.Minimatch(assoc);
2575+
if (matcher.match(filePath)) {
25752576
foundGlobMatch = true;
25762577
break; // Assoc matched a glob pattern.
25772578
}

Extension/yarn.lock

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,12 +443,12 @@
443443
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
444444
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
445445

446-
"@types/minimatch@*":
446+
"@types/minimatch@*", "@types/minimatch@^5.1.2":
447447
version "5.1.2"
448448
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
449449
integrity sha1-B1CLRXl8uB7D8nMBGwVM0HVe3co=
450450

451-
"@types/minimatch@^3.0.3", "@types/minimatch@^3.0.5":
451+
"@types/minimatch@^3.0.3":
452452
version "3.0.5"
453453
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
454454
integrity sha1-EAHMXmo3BLg8I2An538vWOoBD0A=
@@ -3271,6 +3271,13 @@ [email protected]:
32713271
dependencies:
32723272
brace-expansion "^2.0.1"
32733273

3274+
minimatch@^10.0.1:
3275+
version "10.0.1"
3276+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.0.1.tgz#ce0521856b453c86e25f2c4c0d03e6ff7ddc440b"
3277+
integrity sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==
3278+
dependencies:
3279+
brace-expansion "^2.0.1"
3280+
32743281
minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
32753282
version "3.1.2"
32763283
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"

0 commit comments

Comments
 (0)