@@ -2142,8 +2142,7 @@ export class CppProperties {
21422142 newSquiggleMetrics . PathNonExistent ++ ;
21432143 } else {
21442144 // Check for file versus path mismatches.
2145- if ( ( curOffset >= forcedIncludeStart && curOffset <= forcedeIncludeEnd ) ||
2146- ( curOffset >= compileCommandsStart && curOffset <= compileCommandsEnd ) ) {
2145+ if ( curOffset >= forcedIncludeStart && curOffset <= forcedeIncludeEnd ) {
21472146 if ( expandedPaths . length > 1 ) {
21482147 message = localize ( "multiple.paths.not.allowed" , "Multiple paths are not allowed." ) ;
21492148 newSquiggleMetrics . MultiplePathsNotAllowed ++ ;
@@ -2156,9 +2155,10 @@ export class CppProperties {
21562155 message = localize ( "path.is.not.a.file" , "Path is not a file: {0}" , expandedPaths [ 0 ] ) ;
21572156 newSquiggleMetrics . PathNotAFile ++ ;
21582157 }
2159- } else if ( curOffset >= compileCommandsArrayStart && curOffset <= compileCommandsArrayEnd ) {
2158+ } else if ( ( curOffset >= compileCommandsStart && curOffset <= compileCommandsEnd ) ||
2159+ ( curOffset >= compileCommandsArrayStart && curOffset <= compileCommandsArrayEnd ) ) {
21602160 if ( expandedPaths . length > 1 ) {
2161- message = localize ( "multiple.paths.should.be.separate.entries" , "Multiple paths should be separate entries in the array." ) ;
2161+ message = localize ( "multiple.paths.should.be.separate.entries" , "Multiple paths should be separate entries in an array." ) ;
21622162 newSquiggleMetrics . MultiplePathsShouldBeSeparated ++ ;
21632163 } else {
21642164 const resolvedPath = this . resolvePath ( expandedPaths [ 0 ] ) ;
0 commit comments