File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/cursorless-vscode/src/ide/vscode Expand file tree Collapse file tree 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" ;
62import { RelativePattern , workspace } from "vscode" ;
73
84export class VscodeFileSystem implements FileSystem {
95 watch ( path : string , onDidChange : PathChangeListener ) : Disposable {
106 // TODO: What happens on VSCode before 1.64?
117 // FIXME: Support globs?
12- const watcher = workspace . createFileSystemWatcher ( new RelativePattern ( path , "**" ) ) ;
8+ const watcher = workspace . createFileSystemWatcher (
9+ new RelativePattern ( path , "**" ) ,
10+ ) ;
1311 watcher . onDidChange ( onDidChange ) ;
1412 watcher . onDidCreate ( onDidChange ) ;
1513 watcher . onDidDelete ( onDidChange ) ;
1614 return watcher ;
1715 }
1816}
19-
You can’t perform that action at this time.
0 commit comments