We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa80d44 commit d04d53eCopy full SHA for d04d53e
1 file changed
Extension/src/LanguageServer/configurations.ts
@@ -2340,7 +2340,9 @@ export class CppProperties {
2340
}
2341
} else {
2342
const compileCommandsLastChanged: Date | undefined = this.compileCommandsFileWatcherFallbackTime.get(compileCommandsFile);
2343
- if (compileCommandsLastChanged !== undefined && stats.mtime > compileCommandsLastChanged) {
+ if ((this.compileCommandsFile === undefined) ||
2344
+ (this.compileCommandsFile === null) ||
2345
+ (compileCommandsLastChanged !== undefined && stats.mtime > compileCommandsLastChanged)) {
2346
this.compileCommandsFileWatcherFallbackTime.set(compileCommandsFile, new Date());
2347
this.onCompileCommandsChanged(compileCommandsFile);
2348
this.compileCommandsFile = vscode.Uri.file(compileCommandsFile); // File created.
0 commit comments