GeezerVison is showing github.com — remove support for 'startSessionCommand' contribution · Issue #33791 · microsoft/vscode
remove support for 'startSessionCommand' contribution #33791Labels debtCode quality issuesdebugDebug viewlet, configurations, breakpoints, adapter issues DescriptionWith the introduction of the resolveDebugConfiguration method on type DebugConfigurationProvider in the debug API, it is no longer necessary to contribute a startSessionCommand on the debuggers contribution point. Therefore we are deprecating the startSessionCommand in this milestone and plan to drop it in October 2017. Activitychanged the title [-]remove support for `startSessionCommand` contribution[/-] [+]remove support for 'startSessionCommand' contribution[/+] on Sep 4, 2017isidorn commented on Oct 2, 2017 ping roblourens since we have now removed support for the startSessionCommand so it would be great if chrome adopts this change and starts using DebugConfigurationProviders. There are great examples in the Mock Debug in Node Debug DonJayamanne commented on Oct 9, 2017 The startSessionCommand command provided the ability to debug even without having to open a workspace.
I have now adopted the DebugCOnfigurationProvider and registered it, and when testing debugging of a simple python file (in the python extension) I don't get what I expect.
The resolveDebugConfigration method is invoked and the provideDebugConfigurations is not.
Also, the debugConfiguration object passed into the resolveDebugCOnfiguration method is an empty object.
Is the solution for me to check if it's an empty object and then inject the other properties that would be required by my debugger?
Or am I missing something in my workflow/implementation? weinand commented on Oct 9, 2017 ContributorAuthor More actions Reacted by Don Jayamanne and Jinbo Wang isidorn commented on Oct 10, 2017 gregg-miskelly commented on Oct 10, 2017 Isidor Nikolic (@isidorn) the new debugging API was introduced in the August release (that shipped in early September) and the old API will be removed in the October release (which ships in early November). Is that correct? isidorn commented on Oct 10, 2017 isidorn commented on Oct 13, 2017 Shouldnt FlutterLaunchRequestArguments extend from DebugConfiguration at the end?
Not sure how to make the types flow nicely, but at the end DebugConfiguration is just the required part of the configuraiton that the vscode is aware of. Debug adapters are aware of additional fields on top of the basic ones. DanTup commented on Oct 13, 2017 I did try that, but then I just errors at the other end because my DebugSession's args property was no longer a LaunchRequestArgs:
export class DartDebugSession extends DebugSession {
I'ts not obvious to me if there should be a relationship between DebugConfig and DebugProtocol.LaunchRequestArguments.. one is being built at the Code side and the other being passed to the debug adapter, but in code they're totally unrelated.
I'll leave my cast in for now since it seems to work. Looks like other adapters might just indexing into the object with string keys so they don't see this (but I really don't want to do that, I already have a nice class!). isidorn commented on Oct 17, 2017 gregg-miskelly commented on Oct 17, 2017 rkeithhill commented on Oct 21, 2017 OK, got the PowerShell extension updated to work with these changes - PR coming shortly DanTup commented on Oct 21, 2017 Dart Code is now all updated (as of v2.4.3, published yesterday) 🙂 isidorn commented on Oct 25, 2017 pieandcakes commented on Oct 25, 2017 rkeithhill commented on Oct 25, 2017 BTW it seems we have to set our extension's min vscode engine version to 1.17. In reading release notes, it would appear this was intro'd in 1.16 but when I peruse the vscode.d.ts file for the v1.16.0 tag, there is no vscode.debug. However there is in vscode.proposed.d.ts.
This makes the compat cross-over a bit tight. I mean 1.17 came out less than a month ago but when 1.18 drops we have no choice but to update to a min version of 1.17. That leaves folks who updated VSCode less than a month ago, not able to debug with the latest PowerShell extension (until they update VSCode). weinand commented on Oct 25, 2017 ContributorAuthor More actions Keith Hill (@rkeithhill) yes, I share your concern and in the future we will always use a 2 month grace period.
However, we will not restore the already removed functionality (like 'startSessionCommand').
Isidor Nikolic (@isidorn) lets make sure that we remove all future deprecations only after a 2 month grace period. ramya-rao-a commented on Oct 27, 2017 Keith Hill (@rkeithhill)
This makes the compat cross-over a bit tight. I mean 1.17 came out less than a month ago but when 1.18 drops we have no choice but to update to a min version of 1.17. That leaves folks who updated VSCode less than a month ago, not able to debug with the latest PowerShell extension (until they update VSCode).
As far as I understood extension updates, an update with engine version set to say 1.17 will not even show up as an update to someone using VS Code 1.16. They will never get the extension update until they update VS Code. So they should be able to debug just fine.
Sandeep Somavarapu (@sandy081) can confirm this. sandy081 commented on Oct 30, 2017 Yes, we only install the compatible extensions for the given VS Code version by checking their engine property. added a commit that references this issue on Sep 6, 2026This issue will close once commit 91abfaa is merged into the 'main' branch.91abfaa
MetadataMetadatadebtCode quality issuesdebugDebug viewlet, configurations, breakpoints, adapter issues DevelopmentNo branches or pull requestsIssue actions
|