Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "prefersDebugSession" + rename capabilities flag #7949

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Jun 19, 2024

This adds a new flag prefersDebugSession similar to the one added yesterday requiresDebugSession to better handle tools that should have debug sessions if they exist but can also be launched without.

Since the change landed yesterday has not shipped, I renamed the capabilities flag to cover both options.

The editor behaviour I have implemented currently (but am happy to tweak is) that if this is flag is true then:

  • if there are no debug sessions, launch without
  • if there is one debug session, launch with that
  • if there are multiple debug sessions, prompt the user

We could just use the "active debug session" (according to VS Code) for the last one, but since we don't do that for other things yet (we always prompt) and we're not showing the "active" debug session in the sidebar yet, I think prompting makes most sense. In most cases, probably users don't have multiple debug sessions anyway.

@kenzieschmoll I will push a new Dart-Code pre-release with those changes once this merges. I don't want to do it now in case there is feedback or you're still working against the already-merged code (since the capability flag is renamed).

@DanTup DanTup merged commit c34d2cf into flutter:master Jun 20, 2024
23 of 24 checks passed
@DanTup DanTup deleted the add-prefers-debug-session branch June 20, 2024 16:03
@DanTup
Copy link
Contributor Author

DanTup commented Jun 20, 2024

@kenzieschmoll I've published an updated pre-release of Dart-Code (3.91.20240620) that includes the Dart-Code side of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants