FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Restore `SetBreakpoints` API by rjmholt · Pull Request #11622 · PowerShell/PowerShell · GitHub

Restore SetBreakpoints API - #11622

Merged
Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
rjmholt:restoreapi-setbreakpoints
Jan 30, 2020
Merged

Restore SetBreakpoints API#11622
Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
rjmholt:restoreapi-setbreakpoints

Conversation

Copy link
Copy Markdown
Collaborator

#11312 changed the SetBreakpoint() API in a breaking way. This PR restores the original API while continuing to make the new one available.

Tooling will be impacted by not crashing when targeting the SetBreakpoints API across PowerShell versions.

NOTE #11312 adds default parameters to other APIs (not broken since they were only added in the 7.0 timeframe). For compatibility it would be favourable to turn those into overloads instead.

Services #11619.

PR Checklist

TylerLeonhardt commented Jan 24, 2020
edited
Loading

Copy link
Copy Markdown
Member

NOTE #11312 adds default parameters to other APIs (not broken since they were only added in the 7.0 timeframe). For compatibility it would be favourable to turn those into overloads instead.

I spoke to Dongbo Wang (@daxian-dbw) about this back when I implemented #11312 and we decided that that breakage was fine.

Copy link
Copy Markdown
Collaborator Author

we decided that that breakage was fine.

Well it's not mutually exclusive -- perhaps we can have both? Also, it feels like such a decision should be documented in either the PR or the extended commit message.

Copy link
Copy Markdown
Member

Yeah I thought that was captured but I guess not. I'll defer to Dongbo Wang (@daxian-dbw) for the right call here. I'm fine either way. Happy to add a comment on my old PR calling out the break.

Copy link
Copy Markdown
Member

I agree to have overloads.

Rob Holt (rjmholt) force-pushed the restoreapi-setbreakpoints branch from ca802ba to b06bbe4 Compare January 29, 2020 18:26

Copy link
Copy Markdown
Member

Please review Paul Higinbotham (@PaulHigin)

Travis Plunk (TravisEz13) added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Jan 30, 2020

Travis Plunk (TravisEz13) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Approving as maintainer

Travis Plunk (TravisEz13) changed the title Restore SetBreakpoints API Restore SetBreakpoints API Jan 30, 2020
Travis Plunk (TravisEz13) merged commit f0fe356 into PowerShell:master Jan 30, 2020
Aditya Patwardhan (adityapatwardhan) pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Feb 18, 2020
* Restore SetBreakpoints API

* Remove default values in API methods

* Fix inheriting APIs

* Correct further comments

* Fix breakpoint API use issues

* Fix breakpoint API tests

# Conflicts:
#	test/powershell/SDK/Breakpoint.Tests.ps1

Copy link
Copy Markdown

🎉v7.0.0-rc.3 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
* Restore SetBreakpoints API

* Remove default values in API methods

* Fix inheriting APIs

* Correct further comments

* Fix breakpoint API use issues

* Fix breakpoint API tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL