@@ -1814,8 +1814,8 @@ export class CppProperties {
18141814 // Check for path-related squiggles.
18151815 let paths : string [ ] = [ ] ;
18161816 let compilerPath : string | undefined ;
1817- for ( const pathArray of [ ( currentConfiguration . browse ? currentConfiguration . browse . path : undefined ) ,
1818- currentConfiguration . includePath , currentConfiguration . macFrameworkPath ] ) {
1817+ for ( const pathArray of [ ( currentConfiguration . browse ? currentConfiguration . browse . path : undefined ) ,
1818+ currentConfiguration . includePath , currentConfiguration . macFrameworkPath ] ) {
18191819 if ( pathArray ) {
18201820 for ( const curPath of pathArray ) {
18211821 paths . push ( `${ curPath } ` ) ;
@@ -1825,7 +1825,7 @@ export class CppProperties {
18251825 // Skip the relative forcedInclude files.
18261826 if ( currentConfiguration . forcedInclude ) {
18271827 for ( const file of currentConfiguration . forcedInclude ) {
1828- const resolvedFilePath : string = this . resolvePath ( file , isWindows ) ;
1828+ const resolvedFilePath : string = this . resolvePath ( file ) ;
18291829 if ( path . isAbsolute ( resolvedFilePath ) ) {
18301830 paths . push ( `${ file } ` ) ;
18311831 }
@@ -1843,7 +1843,7 @@ export class CppProperties {
18431843 // Resolve and split any environment variables
18441844 paths = this . resolveAndSplit ( paths , undefined , this . ExtendedEnvironment ) ;
18451845 compilerPath = util . resolveVariables ( compilerPath , this . ExtendedEnvironment ) . trim ( ) ;
1846- compilerPath = this . resolvePath ( compilerPath , isWindows ) ;
1846+ compilerPath = this . resolvePath ( compilerPath ) ;
18471847
18481848 // Get the start/end for properties that are file-only.
18491849 const forcedIncludeStart : number = curText . search ( / \s * \" f o r c e d I n c l u d e \" \s * : \s * \[ / ) ;
@@ -1907,7 +1907,7 @@ export class CppProperties {
19071907
19081908 dotConfigPath = currentConfiguration . dotConfig ;
19091909 dotConfigPath = util . resolveVariables ( dotConfigPath , this . ExtendedEnvironment ) . trim ( ) ;
1910- dotConfigPath = this . resolvePath ( dotConfigPath , isWindows ) ;
1910+ dotConfigPath = this . resolvePath ( dotConfigPath ) ;
19111911 // does not try resolve if the dotConfig property is empty
19121912 dotConfigPath = dotConfigPath !== '' ? dotConfigPath : undefined ;
19131913
@@ -1946,7 +1946,7 @@ export class CppProperties {
19461946 continue ;
19471947 }
19481948
1949- let resolvedPath : string = this . resolvePath ( curPath , isWindows ) ;
1949+ let resolvedPath : string = this . resolvePath ( curPath ) ;
19501950 if ( ! resolvedPath ) {
19511951 continue ;
19521952 }
@@ -1986,15 +1986,15 @@ export class CppProperties {
19861986 let message : string ;
19871987 if ( ! pathExists ) {
19881988 if ( curOffset >= forcedIncludeStart && curOffset <= forcedeIncludeEnd
1989- && ! path . isAbsolute ( resolvedPath ) ) {
1989+ && ! path . isAbsolute ( resolvedPath ) ) {
19901990 continue ; // Skip the error, because it could be resolved recursively.
19911991 }
19921992 message = localize ( 'cannot.find2' , "Cannot find \"{0}\"." , resolvedPath ) ;
19931993 newSquiggleMetrics . PathNonExistent ++ ;
19941994 } else {
19951995 // Check for file versus path mismatches.
19961996 if ( ( curOffset >= forcedIncludeStart && curOffset <= forcedeIncludeEnd ) ||
1997- ( curOffset >= compileCommandsStart && curOffset <= compileCommandsEnd ) ) {
1997+ ( curOffset >= compileCommandsStart && curOffset <= compileCommandsEnd ) ) {
19981998 if ( util . checkFileExistsSync ( resolvedPath ) ) {
19991999 continue ;
20002000 }
@@ -2018,7 +2018,6 @@ export class CppProperties {
20182018 // TODO: This never matches. https://github.com/microsoft/vscode-cpptools/issues/9140
20192019 const envMatches : string [ ] | null = envText . match ( pattern ) ;
20202020 if ( envMatches ) {
2021-
20222021 let curOffset : number = 0 ;
20232022 let endOffset : number = 0 ;
20242023 for ( const curMatch of envMatches ) {
@@ -2066,7 +2065,6 @@ export class CppProperties {
20662065 telemetry . logLanguageServerEvent ( "ConfigSquiggles" , undefined , changedSquiggleMetrics ) ;
20672066 }
20682067 this . prevSquiggleMetrics . set ( currentConfiguration . name , newSquiggleMetrics ) ;
2069-
20702068 }
20712069
20722070 private updateToVersion2 ( ) : void {
0 commit comments