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

fix: warn user before starting the same debug session multiple times #14862

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Feb 6, 2025

What it does

When a debug session is initiated by the user, and the suppressMultipleSessionWarning is not set to true in the launch config, prompt the user before starting a new debug session with the same label.

  • Introduce an optional suppressMultipleSessionWarning prop to the debug config.
  • Add an optional startedByUser prop to the session options.
  • Add getLabel to DebugSession

Closes #7917

How to test

Try to start the "same" debug config twice; Theia will warn you unless the suppressMultipleSessionWarning is explicitly set to true.

Screen.Recording.2025-02-06.at.16.09.30.mov
Screen.Recording.2025-02-06.at.16.09.57.mov

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

When a debug session is initiated by the user, and the
`suppressMultipleSessionWarning` is not set to `false` in
the launch config, prompt the user before starting a new
debug session with the same label.

- Introduce `suppressMultipleSessionWarning` prop to the
  debug config.
- Add `startedByUser` prop to the session options.

Closes eclipse-theia#7917
@kittaakos kittaakos marked this pull request as ready for review February 6, 2025 15:12
@kittaakos kittaakos changed the title fix: warn before starting multiple debug sessions fix: warn before starting the same debug session multiple times Feb 6, 2025
@kittaakos kittaakos changed the title fix: warn before starting the same debug session multiple times fix: warn user before starting the same debug session multiple times Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

[debug] Same debug/launch config can be started in parallel
1 participant