You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ Bug Fixes:
40
40
- Fix bug that shows empty lines in Pinned Commands view. [#4406](https://github.com/microsoft/vscode-cmake-tools/issues/4406)
41
41
- Fix Compiler Warnings not shown in Problems Window [#4567]https://github.com/microsoft/vscode-cmake-tools/issues/4567
42
42
- Fix bug in which clicking "Run Test" for filtered tests executed all tests instead [#4501](https://github.com/microsoft/vscode-cmake-tools/pull/4501)[@hippo91](https://github.com/hippo91)
43
+
- Fix bug in which running "CMake: Build" would always run "CMake: Clean Rebuild" when `cmake.buildTask` is enabled [#4421](https://github.com/microsoft/vscode-cmake-tools/issues/4421)[@RedSkittleFox](https://github.com/RedSkittleFox)
Copy file name to clipboardExpand all lines: src/cmakeTaskProvider.ts
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -328,11 +328,15 @@ export class CMakeTaskProvider implements vscode.TaskProvider {
328
328
if(defaultTask.length>=1){
329
329
returndefaultTask[0];
330
330
}else{
331
+
// If there are two tasks, both of them are templates, either build or clean rebuild, select the build one - the first one
332
+
if(matchingTargetTasks.length===2){
333
+
returnmatchingTargetTasks[0];
334
+
}
331
335
// If there is no default task, matchingTargetTasks is a mixture of template and defined tasks.
332
336
// If there is only one task, that task is a template, so return the template.
333
-
// If there are only two tasks, the first one is always a template, and the second one is the defined task that we are searching for.
334
-
// But if there are more than two tasks, it means that there are multiple defiend tasks and none are set as default. So ask the user to choose one later.
// If there are three tasks, the first two are always templates, and the third one is the defined task that we are searching for.
338
+
// But if there are more than three tasks, it means that there are multiple defiend tasks and none are set as default. So ask the user to choose one later.
0 commit comments