Skip to content

Conversation

@rjmholt
Copy link
Collaborator

@rjmholt rjmholt commented Jan 17, 2020

#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
Copy link
Member

TylerLeonhardt commented Jan 24, 2020

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 @daxian-dbw about this back when I implemented #11312 and we decided that that breakage was fine.

@rjmholt
Copy link
Collaborator Author

rjmholt commented Jan 27, 2020

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
Member

Yeah I thought that was captured but I guess not. I'll defer to @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
Member

I agree to have overloads.

@rjmholt rjmholt force-pushed the restoreapi-setbreakpoints branch from ca802ba to b06bbe4 Compare January 29, 2020 18:26
@TravisEz13
Copy link
Member

Please review @PaulHigin

@TravisEz13 TravisEz13 added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Jan 30, 2020
Copy link
Member

@TravisEz13 TravisEz13 left a comment

Choose a reason for hiding this comment

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

Approving as maintainer

@TravisEz13 TravisEz13 changed the title Restore SetBreakpoints API Restore SetBreakpoints API Jan 30, 2020
@TravisEz13 TravisEz13 merged commit f0fe356 into PowerShell:master Jan 30, 2020
@daxian-dbw daxian-dbw modified the milestones: GA-consider, GA-approved Jan 31, 2020
@TravisEz13 TravisEz13 modified the milestones: GA-approved, 7.0.0 Feb 8, 2020
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

ghost commented Feb 21, 2020

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

Handy links:

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