11import  *  as  vscode  from  "vscode" ; 
22
3- import  Log  from  "../../shared /log" ; 
3+ import  Log  from  "../util /log" ; 
44import  posixPath  from  "../util/posixPath" ; 
55
66const  LOG_PREFIX  =  "DetectorBase" ; 
@@ -28,9 +28,8 @@ export default abstract class DetectorBase {
2828    this . onChangeEmitter  =  new  vscode . EventEmitter < void > ( ) ; 
2929    this . onChange  =  this . onChangeEmitter . event ; 
3030    this . refresh ( ) ; 
31-     this . fileSystemWatcher  =  vscode . workspace . createFileSystemWatcher ( 
32-       searchPattern 
33-     ) ; 
31+     this . fileSystemWatcher  = 
32+       vscode . workspace . createFileSystemWatcher ( searchPattern ) ; 
3433    this . fileSystemWatcher . onDidChange ( this . refresh ,  this ) ; 
3534    this . fileSystemWatcher . onDidCreate ( this . refresh ,  this ) ; 
3635    this . fileSystemWatcher . onDidDelete ( this . refresh ,  this ) ; 
@@ -46,9 +45,9 @@ export default abstract class DetectorBase {
4645
4746  async  refresh ( )  { 
4847    Log . log ( LOG_PREFIX ,  "Refreshing file list..." ,  this . searchPattern ) ; 
49-     this . allFiles  =  ( 
50-       await   vscode . workspace . findFiles ( this . searchPattern ) 
51-     ) . map ( ( _ )   =>   posixPath ( _ . fsPath ) ) ; 
48+     this . allFiles  =  ( await   vscode . workspace . findFiles ( this . searchPattern ) ) . map ( 
49+       ( _ )   =>   posixPath ( _ . fsPath ) 
50+     ) ; 
5251    await  this . processFiles ( ) ; 
5352    this . onChangeEmitter . fire ( ) ; 
5453  } 
0 commit comments