We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa00774 commit 03165adCopy full SHA for 03165ad
packages/cursorless-vscode/src/ide/vscode/VscodeFileSystem.ts
@@ -1,12 +1,12 @@
1
import { Disposable, FileSystem, PathChangeListener } from "@cursorless/common";
2
import * as vscode from "vscode";
3
-import { RelativePattern, Uri, workspace } from "vscode";
+import { RelativePattern, workspace } from "vscode";
4
5
export class VscodeFileSystem implements FileSystem {
6
watchDir(path: string, onDidChange: PathChangeListener): Disposable {
7
// FIXME: Support globs?
8
const watcher = workspace.createFileSystemWatcher(
9
- new RelativePattern(Uri.file(path), "**"),
+ new RelativePattern(path, "**"),
10
);
11
12
return vscode.Disposable.from(
0 commit comments