@@ -1460,7 +1460,7 @@ export class CppProperties {
14601460 }
14611461
14621462 // Configuration.compileCommands is allowed to be defined as a string in the schema, but we send an array to the language server.
1463- // For having a predictable behvaior , we convert it here to an array of strings.
1463+ // For having a predictable behavior , we convert it here to an array of strings.
14641464 for ( let i : number = 0 ; i < newJson . configurations . length ; i ++ ) {
14651465 newJson . configurations [ i ] . compileCommands = this . forceCompileCommandsAsArray ( < any > newJson . configurations [ i ] . compileCommands ) ;
14661466 }
@@ -1815,7 +1815,7 @@ export class CppProperties {
18151815 const currentConfiguration : Configuration = configurations . configurations [ this . CurrentConfigurationIndex ] ;
18161816
18171817 // Configuration.compileCommands is allowed to be defined as a string in the schema, but we send an array to the language server.
1818- // For having a predictable behvaior , we convert it here to an array of strings.
1818+ // For having a predictable behavior , we convert it here to an array of strings.
18191819 // Squiggles are still handled for both cases.
18201820 currentConfiguration . compileCommands = this . forceCompileCommandsAsArray ( < any > currentConfiguration . compileCommands ) ;
18211821
@@ -2389,7 +2389,7 @@ export class CppProperties {
23892389 }
23902390 } else {
23912391 const compileCommandsLastChanged : Date | undefined = this . compileCommandsFileWatcherFallbackTime . get ( compileCommandsFile ) ;
2392- if ( ( ! this . compileCommandsFiles . has ( compileCommandsFile ) ) ||
2392+ if ( ! this . compileCommandsFiles . has ( compileCommandsFile ) ||
23932393 ( compileCommandsLastChanged !== undefined && stats . mtime > compileCommandsLastChanged ) ) {
23942394 this . compileCommandsFileWatcherFallbackTime . set ( compileCommandsFile , new Date ( ) ) ;
23952395 this . onCompileCommandsChanged ( compileCommandsFile ) ;
0 commit comments