File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1672,10 +1672,10 @@ export class CppProperties {
16721672 if ( ! isCl && compilerPathAndArgs . compilerPath ) {
16731673 const compilerPathMayNeedQuotes : boolean = ! resolvedCompilerPath . startsWith ( '"' ) && resolvedCompilerPath . includes ( " " ) && compilerPathAndArgs . compilerArgsFromCommandLineInPath . length > 0 ;
16741674 let pathExists : boolean = true ;
1675- const existsWithExeAdded : ( path : string ) => boolean = ( path : string ) => isWindows && ! path . startsWith ( "/" ) && util . checkFileExistsSync ( path + ".exe" ) ;
1675+ const existsWithExeAdded : ( path : string ) => boolean = ( path : string ) => isWindows && ! path . startsWith ( "/" ) && fs . existsSync ( path + ".exe" ) ;
16761676
16771677 resolvedCompilerPath = compilerPathAndArgs . compilerPath ;
1678- if ( ! util . checkFileExistsSync ( resolvedCompilerPath ) ) {
1678+ if ( ! fs . existsSync ( resolvedCompilerPath ) ) {
16791679 if ( existsWithExeAdded ( resolvedCompilerPath ) ) {
16801680 resolvedCompilerPath += ".exe" ;
16811681 } else {
@@ -1686,7 +1686,7 @@ export class CppProperties {
16861686 } else if ( rootUri ) {
16871687 // Test if it was a relative path.
16881688 const absolutePath : string = rootUri . fsPath + path . sep + resolvedCompilerPath ;
1689- if ( ! util . checkFileExistsSync ( absolutePath ) ) {
1689+ if ( ! fs . existsSync ( absolutePath ) ) {
16901690 if ( existsWithExeAdded ( absolutePath ) ) {
16911691 resolvedCompilerPath = absolutePath + ".exe" ;
16921692 } else {
You can’t perform that action at this time.
0 commit comments