Skip to content

Commit

Permalink
chore: fix minimatch import
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Dec 21, 2024
1 parent f71f051 commit 46b5dff
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
42 changes: 37 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/workspaceObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion tests/mock/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 46b5dff

Please sign in to comment.