File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
projects/igniteui-angular/migrations/common Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,24 @@ export class ServerHost implements ts.server.ServerHost {
38
38
return ts . sys . getFileSize ( path ) ;
39
39
}
40
40
41
- public watchFile ( path : string , callback : ts . FileWatcherCallback , pollingInterval ?: number ) :
41
+ //#region Watchers
42
+ // Atm we do not need to have file or dir watchers that access the actual FS
43
+ // as we are only working with NG's virtual FS
44
+ // Prior to https://github.com/microsoft/TypeScript/pull/49990 we were more or less required
45
+ // to add a watcher since it threw an error otherwise
46
+
47
+ public watchFile ( _path : string , _callback : ts . FileWatcherCallback , _pollingInterval ?: number ) :
42
48
ts . FileWatcher {
43
- return ts . sys . watchFile ( path , callback , pollingInterval ) ;
49
+ // return ts.sys.watchFile(path, callback, pollingInterval);
50
+ return undefined ;
44
51
}
45
52
46
- public watchDirectory ( path : string , callback : ts . DirectoryWatcherCallback , recursive ?: boolean ) :
53
+ public watchDirectory ( _path : string , _callback : ts . DirectoryWatcherCallback , _recursive ?: boolean ) :
47
54
ts . FileWatcher {
48
- return ts . sys . watchDirectory ( path , callback , recursive ) ;
55
+ // return ts.sys.watchDirectory(path, callback, recursive);
56
+ return undefined ;
49
57
}
58
+ //#endregion
50
59
51
60
public resolvePath ( path : string ) : string {
52
61
return ts . sys . resolvePath ( path ) ;
You can’t perform that action at this time.
0 commit comments