diff --git a/package-lock.json b/package-lock.json index 402cb5d96..a661f37e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "eslint-plugin-notice": "^0.9.10", "eslint-plugin-react-hooks": "^4.6.0", "glob": "^8.0.3", - "minimatch": "^9.0.5", + "minimatch": "^10.0.1", "typescript": "^5.4.3" }, "engines": { @@ -1716,6 +1716,22 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", @@ -1816,6 +1832,22 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/@vscode/l10n-dev/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@vscode/vsce": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-3.2.1.tgz", @@ -4456,16 +4488,16 @@ } }, "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" diff --git a/package.json b/package.json index ed9ea8837..5db37bbca 100644 --- a/package.json +++ b/package.json @@ -207,7 +207,7 @@ "eslint-plugin-notice": "^0.9.10", "eslint-plugin-react-hooks": "^4.6.0", "glob": "^8.0.3", - "minimatch": "^9.0.5", + "minimatch": "^10.0.1", "typescript": "^5.4.3" }, "dependencies": { diff --git a/src/workspaceObserver.ts b/src/workspaceObserver.ts index db5a86603..78d988545 100644 --- a/src/workspaceObserver.ts +++ b/src/workspaceObserver.ts @@ -40,7 +40,7 @@ export class WorkspaceObserver { if (this._folderWatchers.has(folder)) continue; - const watcher = this._vscode.workspace.createFileSystemWatcher(folder + path.sep + '**'); + const watcher = this._vscode.workspace.createFileSystemWatcher(folder.replaceAll(path.sep, '/') + '/**'); const disposables: vscodeTypes.Disposable[] = [ watcher.onDidCreate(uri => { if (uri.scheme === 'file') diff --git a/tests/mock/vscode.ts b/tests/mock/vscode.ts index d9b9926f7..e09f4b278 100644 --- a/tests/mock/vscode.ts +++ b/tests/mock/vscode.ts @@ -18,7 +18,6 @@ import fs from 'fs'; import glob from 'glob'; import path from 'path'; import { Disposable, EventEmitter, Event } from '../../src/upstream/events'; -// @ts-ignore import { minimatch } from 'minimatch'; import { ChildProcessWithoutNullStreams, spawn } from 'child_process'; import which from 'which';