GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — remove support for 'startSessionCommand' contribution · Issue #33791 · microsoft/vscode

remove support for 'startSessionCommand' contribution #33791

New issue
Copy link
New issue
Copy link
Closed
Closed
remove support for 'startSessionCommand' contribution#33791
Copy link
Assignees
weinandisidorn
Labels
debtCode quality issuesdebugDebug viewlet, configurations, breakpoints, adapter issues
Milestone
October 2017

Description

@weinand
Andre Weinand (weinand)
opened on Sep 4, 2017
Issue body actions

With 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.

Activity

Next
  1. Andre Weinand (weinand)
    added
    debtCode quality issues
    debugDebug viewlet, configurations, breakpoints, adapter issues
    on Sep 4, 2017
  2. Andre Weinand (weinand)
    added this to the October 2017 milestone on Sep 4, 2017
  3. Andre Weinand (weinand)
    assigned
    Andre Weinand (weinand)
    and
    Isidor Nikolic (isidorn)
    on Sep 4, 2017
  4. Andre Weinand (weinand)
    changed the title [-]remove support for `startSessionCommand` contribution[/-] [+]remove support for 'startSessionCommand' contribution[/+] on Sep 4, 2017
  5. Isidor Nikolic (isidorn)
    closed this as completedin f9effd3on Oct 2, 2017
  6. isidorn commented on Oct 2, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 2, 2017
    More actions

    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

  7. DonJayamanne commented on Oct 9, 2017

    @DonJayamanne
    Don Jayamanne (DonJayamanne)
    on Oct 9, 2017
    Contributor
    More actions

    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?

  8. weinand commented on Oct 9, 2017

    @weinand
    Andre Weinand (weinand)
    on Oct 9, 2017
    ContributorAuthor
    More actions

    Don Jayamanne (@DonJayamanne) yes, checking for the empty object is a correct approach. It has not changed from the now obsolete startSessionCommand approach.

    provideDebugConfigurations is only called if a new launch.json needs to be created (which is not the case when you just want to debug a python file from the editor with F5). This behaviour has not changed with the introduction of the DebugCOnfigurationProvider.

    See what we do in node-debug: https://github.com/Microsoft/vscode-node-debug/blob/ae3618de23acc4ce6e81a5d65e56ed76f9ef69da/src/node/extension/configurationProvider.ts#L34

    Reacted by Don Jayamanne and Jinbo Wang
  9. isidorn commented on Oct 10, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 10, 2017
    More actions

    fyi David Wilson (@daviwil) Keith Hill (@rkeithhill) Del Myers (@delmyers) Gregg Miskelly (@gregg-miskelly) Jimmy Thomson (@MSLaguana) Danny Tuppeny (@DanTup) Devon Carew (@devoncarew) Jan Jurzitza (@WebFreak001) Andy Sterland (@andysterland) Holger Benl (@hbenl) lukaszunity Sami Vaarala (@svaarala) Ramya Rao (@ramya-rao-a) vadimcn Felix Becker (@felixfbecker) Jimmy Thomson (@MSLaguana) Peng Lyu (@rebornix)

    We have removed quite some depricated debug commands since they now have nice debug API alternatives. This is documented in our release notes and here are the issues covering that.

  10. gregg-miskelly commented on Oct 10, 2017

    @gregg-miskelly
    Gregg Miskelly (gregg-miskelly)
    on Oct 10, 2017
    Member
    More actions

    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?

  11. isidorn commented on Oct 10, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 10, 2017
    More actions

    Gregg Miskelly (@gregg-miskelly) correct

  12. 6 remaining items

  13. Danny Tuppeny (DanTup)
    added a commit that references this issue on Oct 13, 2017

    Move off startSessionCommand and startDebug.

    e26f46a
  14. isidorn commented on Oct 13, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 13, 2017
    More actions

    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.

  15. DanTup commented on Oct 13, 2017

    @DanTup
    Danny Tuppeny (DanTup)
    on Oct 13, 2017
    Contributor
    More actions

    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!).

  16. isidorn commented on Oct 17, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 17, 2017
    More actions

    fyi Dustin Campbell (@DustinCampbell)

    Keith Hill (@rkeithhill) I have only pinged Gregg Miskelly (@gregg-miskelly) on this issue, forgot Dustin. Thanks for pointing out

  17. gregg-miskelly commented on Oct 17, 2017

    @gregg-miskelly
    Gregg Miskelly (gregg-miskelly)
    on Oct 17, 2017
    Member
    More actions

    Yup, we have this tracked with dotnet/vscode-csharp#1787

  18. rkeithhill commented on Oct 21, 2017

    @rkeithhill
    Keith Hill (rkeithhill)
    on Oct 21, 2017
    More actions

    OK, got the PowerShell extension updated to work with these changes - PR coming shortly

  19. DanTup commented on Oct 21, 2017

    @DanTup
    Danny Tuppeny (DanTup)
    on Oct 21, 2017
    Contributor
    More actions

    Dart Code is now all updated (as of v2.4.3, published yesterday) 🙂

  20. isidorn commented on Oct 25, 2017

    @isidorn
    Isidor Nikolic (isidorn)
    on Oct 25, 2017
    More actions

    fyi Pierson Lee (@pieandcakes)

  21. pieandcakes commented on Oct 25, 2017

    @pieandcakes
    Pierson Lee (pieandcakes)
    on Oct 25, 2017
    Contributor
    More actions

    Isidor Nikolic (@isidorn) I don't think we implement this. Thanks for the heads up!

  22. rkeithhill commented on Oct 25, 2017

    @rkeithhill
    Keith Hill (rkeithhill)
    on Oct 25, 2017
    More actions

    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).

  23. weinand commented on Oct 25, 2017

    @weinand
    Andre Weinand (weinand)
    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.

  24. ramya-rao-a commented on Oct 27, 2017

    @ramya-rao-a
    Ramya Rao (ramya-rao-a)
    on Oct 27, 2017
    Contributor
    More actions

    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.

    Reacted by Keith Hill
  25. sandy081 commented on Oct 30, 2017

    @sandy081
    Sandeep Somavarapu (sandy081)
    on Oct 30, 2017
    Member
    More actions

    Yes, we only install the compatible extensions for the given VS Code version by checking their engine property.

  26. vscodebot
    locked and limited conversation to collaborators on Nov 17, 2017
  27. Mandeep Singh (meSingh)
    added a commit that references this issue on Sep 6, 2026

    debug: remove start session command

    This issue will close once commit 91abfaa is merged into the 'main' branch.
    91abfaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @isidorn
    Isidor Nikolic (isidorn)
  • @weinand
    Andre Weinand (weinand)

Labels

debtCode quality issuesdebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

    Milestone

    • October 2017

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.