File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
packages/cursorless-vscode/src/ide/vscode Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { Disposable , FileSystem , PathChangeListener } from "@cursorless/common" ;
2
- import * as vscode from "vscode" ;
3
2
import { RelativePattern , workspace } from "vscode" ;
4
3
5
4
export class VscodeFileSystem implements FileSystem {
@@ -9,11 +8,10 @@ export class VscodeFileSystem implements FileSystem {
9
8
new RelativePattern ( path , "**" ) ,
10
9
) ;
11
10
12
- return vscode . Disposable . from (
13
- watcher ,
14
- watcher . onDidChange ( onDidChange ) ,
15
- watcher . onDidCreate ( onDidChange ) ,
16
- watcher . onDidDelete ( onDidChange ) ,
17
- ) ;
11
+ watcher . onDidChange ( onDidChange ) ;
12
+ watcher . onDidCreate ( onDidChange ) ;
13
+ watcher . onDidDelete ( onDidChange ) ;
14
+
15
+ return watcher ;
18
16
}
19
17
}
Original file line number Diff line number Diff line change @@ -414,10 +414,9 @@ function watchDir(
414
414
new vscode . RelativePattern ( path , `**/*${ CURSORLESS_HAT_SHAPES_SUFFIX } ` ) ,
415
415
) ;
416
416
417
- return vscode . Disposable . from (
418
- hatsDirWatcher ,
419
- hatsDirWatcher . onDidChange ( onDidChange ) ,
420
- hatsDirWatcher . onDidCreate ( onDidChange ) ,
421
- hatsDirWatcher . onDidDelete ( onDidChange ) ,
422
- ) ;
417
+ hatsDirWatcher . onDidChange ( onDidChange ) ;
418
+ hatsDirWatcher . onDidCreate ( onDidChange ) ;
419
+ hatsDirWatcher . onDidDelete ( onDidChange ) ;
420
+
421
+ return hatsDirWatcher ;
423
422
}
You can’t perform that action at this time.
0 commit comments