File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2340,7 +2340,9 @@ export class CppProperties {
23402340 }
23412341 } else {
23422342 const compileCommandsLastChanged : Date | undefined = this . compileCommandsFileWatcherFallbackTime . get ( compileCommandsFile ) ;
2343- if ( compileCommandsLastChanged !== undefined && stats . mtime > compileCommandsLastChanged ) {
2343+ if ( ( this . compileCommandsFile === undefined ) ||
2344+ ( this . compileCommandsFile === null ) ||
2345+ ( compileCommandsLastChanged !== undefined && stats . mtime > compileCommandsLastChanged ) ) {
23442346 this . compileCommandsFileWatcherFallbackTime . set ( compileCommandsFile , new Date ( ) ) ;
23452347 this . onCompileCommandsChanged ( compileCommandsFile ) ;
23462348 this . compileCommandsFile = vscode . Uri . file ( compileCommandsFile ) ; // File created.
You can’t perform that action at this time.
0 commit comments