File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ let sendCompilationFinishedMessage = () => {
192
192
193
193
let debug = false ;
194
194
195
- let syncProjectConfigCache = ( rootPath : string ) => {
195
+ let syncProjectConfigCache = async ( rootPath : string ) => {
196
196
try {
197
197
if ( debug ) console . log ( "syncing project config cache for " + rootPath ) ;
198
198
await utils . runAnalysisAfterSanityCheck ( rootPath , [ "cache-project" , rootPath ] ) ;
@@ -223,7 +223,7 @@ let compilerLogsWatcher = chokidar
223
223
if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
224
224
let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
225
225
if ( projectRoot != null ) {
226
- syncProjectConfigCache ( projectRoot ) ;
226
+ await syncProjectConfigCache ( projectRoot ) ;
227
227
}
228
228
}
229
229
} else {
@@ -289,7 +289,7 @@ let openedFile = async (fileUri: string, fileContent: string) => {
289
289
compilerLogsWatcher . add (
290
290
path . join ( projectRootPath , c . buildNinjaPartialPath )
291
291
) ;
292
- syncProjectConfigCache ( projectRootPath ) ;
292
+ await syncProjectConfigCache ( projectRootPath ) ;
293
293
}
294
294
}
295
295
let root = projectsFiles . get ( projectRootPath ) ! ;
You can’t perform that action at this time.
0 commit comments