Skip to content

Restore SetBreakpoints API - #11622

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

Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
rjmholt:restoreapi-setbreakpoints

Conversation

@rjmholt

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

TylerLeonhardt commented Jan 24, 2020 •

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.

@rjmholt

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.

@TylerLeonhardt

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.

@daxian-dbw

Copy link
Copy Markdown
Member

I agree to have overloads.

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

Copy link
Copy Markdown
Member

Please review Paul Higinbotham (@PaulHigin)

@TravisEz13 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

@TravisEz13 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.

Approving as maintainer

@TravisEz13 Travis Plunk (TravisEz13) changed the title Restore SetBreakpoints API Restore SetBreakpoints API Jan 30, 2020
@TravisEz13
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
@ghost

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-contribs/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
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