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

Open edit launch dialog using correct mode #1300

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

kysmith-csg
Copy link
Contributor

When a launch fails validation, the user is given a link to Edit Launch Configuration. Previously, this link always opened the Edit Run Configurations dialog in Run mode, even if the user initially attempted to Debug. This change ensures that the edit dialog is opening using the original mode.

Copy link

github-actions bot commented Jun 13, 2024

Test Results

   291 files  ±0     291 suites  ±0   1h 1m 13s ⏱️ + 5m 3s
 3 580 tests ±0   3 502 ✅  - 2   76 💤 ±0  0 ❌ ±0  2 🔥 +2 
11 037 runs  ±0  10 804 ✅  - 2  231 💤 ±0  0 ❌ ±0  2 🔥 +2 

For more details on these errors, see this check.

Results for commit 5808183. ± Comparison against base commit 7c27f5c.

♻️ This comment has been updated with latest results.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, and sorry for the delayed reply.
The goal is good, but I think the implementation should be enhanced.
Instead of having a global static field in LauncherUtils that can be set by everyone and has to be remembered to be set, I think it would be better just pass through the launchMode from a launch.

While checking if that's possible I already made the necessary changes and pushed them as separate commit to your (rebased branch). If you agree with them, please incorporate them into your commit.

@kysmith-csg
Copy link
Contributor Author

@HannesWell

please incorporate them into your commit

What does this mean exactly? Do you want me to force push them? You could also just squash-merge this pull request to accept it and it would only make a single commit to the main repo.

When a launch fails validation, the user is given a link to Edit Launch
Configuration. Previously, this link always opened the Edit Run
Configurations dialog in Run mode, even if the user initially attempted
to Debug. This change ensures that the edit dialog is opening using the
original mode.

Co-authored-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

@HannesWell

please incorporate them into your commit

What does this mean exactly? Do you want me to force push them?

Yes. I wanted to give you the possibility to comment on the change in case you don't think it's fine.
But from your comment I think you are fine with it and I just squashed it. And added a missing version bump.

You could also just squash-merge this pull request to accept it and it would only make a single commit to the main repo.

Yes that would work, but github's squash-and-merge leads to a generic committer mail, which I don't think is good since it hides the person that actually submitted a change.

But this is now fine. Thanks for this contribution.

@HannesWell HannesWell merged commit 7d8b8f2 into eclipse-pde:master Jul 8, 2024
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants