File tree 1 file changed +4
-7
lines changed
packages/cursorless-vscode/src/ide/vscode
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
- import {
2
- Disposable ,
3
- FileSystem ,
4
- PathChangeListener
5
- } from "@cursorless/common" ;
1
+ import { Disposable , FileSystem , PathChangeListener } from "@cursorless/common" ;
6
2
import { RelativePattern , workspace } from "vscode" ;
7
3
8
4
export class VscodeFileSystem implements FileSystem {
9
5
watch ( path : string , onDidChange : PathChangeListener ) : Disposable {
10
6
// TODO: What happens on VSCode before 1.64?
11
7
// FIXME: Support globs?
12
- const watcher = workspace . createFileSystemWatcher ( new RelativePattern ( path , "**" ) ) ;
8
+ const watcher = workspace . createFileSystemWatcher (
9
+ new RelativePattern ( path , "**" ) ,
10
+ ) ;
13
11
watcher . onDidChange ( onDidChange ) ;
14
12
watcher . onDidCreate ( onDidChange ) ;
15
13
watcher . onDidDelete ( onDidChange ) ;
16
14
return watcher ;
17
15
}
18
16
}
19
-
You can’t perform that action at this time.
0 commit comments