File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -148,15 +148,18 @@ export class CppBuildTaskProvider implements TaskProvider {
148
148
}
149
149
150
150
// Create a build task per compiler path
151
- let result : CppBuildTask [ ] = [ ] ;
152
- // Tasks for known compiler paths
153
- if ( knownCompilerPaths ) {
154
- result = knownCompilerPaths . map < Task > ( compilerPath => this . getTask ( compilerPath , appendSourceToName , undefined ) ) ;
155
- }
151
+ const result : CppBuildTask [ ] = [ ] ;
152
+
156
153
// Task for valid user compiler path setting
157
154
if ( isCompilerValid && userCompilerPath ) {
158
155
result . push ( this . getTask ( userCompilerPath , appendSourceToName , userCompilerPathAndArgs ?. allCompilerArgs ) ) ;
159
156
}
157
+
158
+ // Tasks for known compiler paths
159
+ if ( knownCompilerPaths ) {
160
+ result . push ( ...knownCompilerPaths . map < Task > ( compilerPath => this . getTask ( compilerPath , appendSourceToName , undefined ) ) ) ;
161
+ }
162
+
160
163
return result ;
161
164
}
162
165
You can’t perform that action at this time.
0 commit comments