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 {
2340
2340
}
2341
2341
} else {
2342
2342
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 ) ) {
2344
2346
this . compileCommandsFileWatcherFallbackTime . set ( compileCommandsFile , new Date ( ) ) ;
2345
2347
this . onCompileCommandsChanged ( compileCommandsFile ) ;
2346
2348
this . compileCommandsFile = vscode . Uri . file ( compileCommandsFile ) ; // File created.
You can’t perform that action at this time.
0 commit comments