Skip to content

Commit 03165ad

Browse files
committed
simplify watcher path arg
1 parent fa00774 commit 03165ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cursorless-vscode/src/ide/vscode/VscodeFileSystem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Disposable, FileSystem, PathChangeListener } from "@cursorless/common";
22
import * as vscode from "vscode";
3-
import { RelativePattern, Uri, workspace } from "vscode";
3+
import { RelativePattern, workspace } from "vscode";
44

55
export class VscodeFileSystem implements FileSystem {
66
watchDir(path: string, onDidChange: PathChangeListener): Disposable {
77
// FIXME: Support globs?
88
const watcher = workspace.createFileSystemWatcher(
9-
new RelativePattern(Uri.file(path), "**"),
9+
new RelativePattern(path, "**"),
1010
);
1111

1212
return vscode.Disposable.from(

0 commit comments

Comments
 (0)