File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,12 @@ export class CppBuildTaskProvider implements TaskProvider {
142142 if ( knownCompilerPaths ) {
143143 result = knownCompilerPaths . map < Task > ( compilerPath => this . getTask ( compilerPath , appendSourceToName , undefined ) ) ;
144144 }
145- // Task for user compiler path setting
145+ // Task for valid user compiler path setting
146146 if ( userCompilerPath ) {
147- result . push ( this . getTask ( userCompilerPath , appendSourceToName , userCompilerPathAndArgs ?. additionalArgs ) ) ;
147+ const isCompilerValid : boolean = await util . checkFileExists ( userCompilerPath ) ;
148+ if ( isCompilerValid ) {
149+ result . push ( this . getTask ( userCompilerPath , appendSourceToName , userCompilerPathAndArgs ?. additionalArgs ) ) ;
150+ }
148151 }
149152 return result ;
150153 }
You can’t perform that action at this time.
0 commit comments