Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26726df

Browse files
author
Elaheh Rashedi
authored
check for valid user compiler path (microsoft#6606)
* valid user compiler path* fix lint error
1 parentb7a0279 commit26726df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Extension/src/LanguageServer/cppBuildTaskProvider.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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 forvaliduser compiler path setting
146146
if(userCompilerPath){
147-
result.push(this.getTask(userCompilerPath,appendSourceToName,userCompilerPathAndArgs?.additionalArgs));
147+
constisCompilerValid:boolean=awaitutil.checkFileExists(userCompilerPath);
148+
if(isCompilerValid){
149+
result.push(this.getTask(userCompilerPath,appendSourceToName,userCompilerPathAndArgs?.additionalArgs));
150+
}
148151
}
149152
returnresult;
150153
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp