@@ -22,7 +22,7 @@ const POLLING_INTERVAL = 5000;
22
22
export function watchLocationForPattern (
23
23
baseDir : string ,
24
24
pattern : string ,
25
- callback : ( type : FileChangeType , absPath : string ) => void ,
25
+ callback : ( type : FileChangeType , absPath : string ) => void
26
26
) : Disposable {
27
27
// Use VSCode API iff base directory to exists within the current workspace folders
28
28
const found = workspace . workspaceFolders ?. find ( ( e ) => normCasePath ( baseDir ) . startsWith ( normCasePath ( e . uri . fsPath ) ) ) ;
@@ -36,7 +36,7 @@ export function watchLocationForPattern(
36
36
function watchLocationUsingVSCodeAPI (
37
37
baseDir : string ,
38
38
pattern : string ,
39
- callback : ( type : FileChangeType , absPath : string ) => void ,
39
+ callback : ( type : FileChangeType , absPath : string ) => void
40
40
) {
41
41
const globPattern = new RelativePattern ( baseDir , pattern ) ;
42
42
const disposables : Disposable [ ] = [ ] ;
@@ -48,14 +48,14 @@ function watchLocationUsingVSCodeAPI(
48
48
return {
49
49
dispose : async ( ) => {
50
50
disposables . forEach ( ( d ) => d . dispose ( ) ) ;
51
- } ,
51
+ }
52
52
} ;
53
53
}
54
54
55
55
function watchLocationUsingChokidar (
56
56
baseDir : string ,
57
57
pattern : string ,
58
- callback : ( type : FileChangeType , absPath : string ) => void ,
58
+ callback : ( type : FileChangeType , absPath : string ) => void
59
59
) {
60
60
const watcherOpts : chokidar . WatchOptions = {
61
61
cwd : baseDir ,
@@ -74,9 +74,9 @@ function watchLocationUsingChokidar(
74
74
'**/.hg/store/**' ,
75
75
'/dev/**' ,
76
76
'/proc/**' ,
77
- '/sys/**' ,
77
+ '/sys/**'
78
78
] , // https://github.com/microsoft/vscode/issues/23954
79
- followSymlinks : false ,
79
+ followSymlinks : false
80
80
} ;
81
81
traceVerbose ( `Start watching: ${ baseDir } with pattern ${ pattern } using chokidar` ) ;
82
82
let watcher : chokidar . FSWatcher | null = chokidar . watch ( pattern , watcherOpts ) ;
0 commit comments