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
Fix bookmark build target resolution to use correct outline lookup method (#4784)
* Initial plan
* Fix bookmarked targets running full build instead of specific target (#4771)
Co-authored-by: Omotola <[email protected]>
* Add error logging when bookmark target cannot be resolved
Co-authored-by: Omotola <[email protected]>
* Fix project selection for bookmark builds using platformNormalizePath
Co-authored-by: Omotola <[email protected]>
* Add fallback resolution for bookmark targets via project outline lookup
Co-authored-by: Omotola <[email protected]>
* Revert resolveTargetNode to original working version without outline fallback
Co-authored-by: Omotola <[email protected]>
* Remove accidentally committed .npmrc.bak
Co-authored-by: Omotola <[email protected]>
* Fix resolveTargetNode fallback to use correct findTargetNodeById method
The previous fallback (from automated reviewer suggestion) called getNodeById
which doesn't exist on ProjectOutline, making it silently fail. The correct
method is findTargetNodeById. This fallback provides defense-in-depth alongside
the existing reattachTargets() mechanism for edge cases where the outline is
populated but reattachTargets() hasn't run yet.
Co-authored-by: snehara99 <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: snehara99 <[email protected]>
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
@@ -28,6 +28,7 @@ Improvements:
28
28
29
29
Bug Fixes:
30
30
- Fix `cmake.buildTask` build failures not aborting debug launches. When `${command:cmake.launchTargetPath}` is used in `launch.json`, a failed build now correctly prevents the stale executable from being launched. [#3389](https://github.com/microsoft/vscode-cmake-tools/issues/3389)
31
+
- Fix bookmarked targets running a full build instead of building only the specific target when triggered from the Bookmarks view. [#4771](https://github.com/microsoft/vscode-cmake-tools/issues/4771)
31
32
- Fix `cmake.compileFile` command truncating long compile commands at ~1024 characters on macOS. The command is now sent to the terminal in chunks to avoid VS Code terminal buffer limitations. [#4470](https://github.com/microsoft/vscode-cmake-tools/issues/4470)
32
33
- Fix configure/build sometimes using stale preset values when unsaved changes to included preset files are auto-saved before configure. The extension now explicitly refreshes presets from disk after saving, instead of relying solely on the asynchronous file watcher. [#4502](https://github.com/microsoft/vscode-cmake-tools/issues/4502)
33
34
- Reduce overly verbose logging when CMake configure or build fails. The Output panel no longer floods with duplicated output, and the channel is only revealed on error rather than unconditionally. [#4749](https://github.com/microsoft/vscode-cmake-tools/issues/4749)
log.error(localize('bookmark.target.not.resolved','Bookmark "{0}" could not be resolved to a target. The project may need to be reconfigured.',what.bookmark.name));
2524
+
}
2525
+
returnundefined;
2526
+
};
2527
+
2507
2528
context.subscriptions.push(...[
2508
2529
// Special commands that don't require logging or separate error handling
0 commit comments