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 11import { Disposable , FileSystem , PathChangeListener } from "@cursorless/common" ;
2- import * as vscode from "vscode" ;
32import { RelativePattern , workspace } from "vscode" ;
43
54export class VscodeFileSystem implements FileSystem {
@@ -9,11 +8,10 @@ export class VscodeFileSystem implements FileSystem {
98 new RelativePattern ( path , "**" ) ,
109 ) ;
1110
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 ;
1816 }
1917}
Original file line number Diff line number Diff line change @@ -414,10 +414,9 @@ function watchDir(
414414 new vscode . RelativePattern ( path , `**/*${ CURSORLESS_HAT_SHAPES_SUFFIX } ` ) ,
415415 ) ;
416416
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 ;
423422}
You can’t perform that action at this time.
0 commit comments