Skip to content

Add "Run As...", "Debug As..." and "Profile As..." commands - #3075

Draft
anydoby wants to merge 4 commits into
eclipse-platform:masterfrom
anydoby:run-as-dialog
Draft

anydoby wants to merge 4 commits into
eclipse-platform:masterfrom
anydoby:run-as-dialog

Conversation

@anydoby

@anydoby anydoby commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

New commands Run As... (Shift+F11), Debug As... (Alt+Shift+F11) and Profile As... (no key).

Each command shows the choices of the "Run As" menu for the current editor or selection in a small dialog: the launch shortcuts that apply, and the launch configurations that they give. Type to filter, Up/Down to select, Enter to launch. The dialog selects the last choice first, so Shift+F11 and Enter repeats it.

Before, the keyboard way to these choices was the context menu and its submenu, or one key sequence for each shortcut (Alt+Shift+X J, ...). The dialog works for all languages, because it uses only the launch shortcuts.

The idea came from a review in Corrosion: eclipse-corrosion/corrosion#472 (comment)

Tests: LaunchAsTests in org.eclipse.debug.tests.

🤖 Generated with Claude Code

The commands show the choices of the "Run As" menu for the current
editor or selection in a dialog: the launch shortcuts that apply and
the launch configurations that they give. Type to filter, Enter
launches, and the dialog selects the last choice first. Shift+F11 opens
"Run As..." and Alt+Shift+F11 opens "Debug As...".

Without the commands, the keyboard way to the Run As choices is the
context menu and its submenu, or one key sequence for each shortcut.

The dialog uses the same enablement checks as the menu and launches in
the same way. It does not show the "Run Configurations..." item of the
menu: the commands "Run Configurations..." and "Debug Configurations..."
already exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ± 0      54 suites  ±0   36m 6s ⏱️ - 1m 43s
 5 032 tests +10   5 010 ✅ +10   22 💤 ±0  0 ❌ ±0 
12 987 runs  +30  12 833 ✅ +30  154 💤 ±0  0 ❌ ±0 

Results for commit 7e5b9bd. ± Comparison against base commit 30dafa8.

♻️ This comment has been updated with latest results.

@SougandhS SougandhS added the enhancement New feature or request label Nov 14, 2026
@laeubi

laeubi commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This seem to heavily overlap with the work here:

Also for UI changes please always provide a screenshot so one can easily see what you want to be changed.

@anydoby

anydoby commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Hi @laeubi, thank you for looking and for the comments. I actually wanted to make 2 PR's. One for the UI part, and the other - adding public API extension (not yet pushed, but coming soon) so that providers add extra entries.

I know how long it might take for a final feature to get accepted so I built a standalone plugin that you can install and test in your Eclipse: https://anydoby.com/plugins/quick-launch/

#3021 changes the Run As menu (Ctrl+click opens the configuration dialog); this PR adds a keyboard way (Shift+F11) to the same entries, so they complement each other. I am the keyboard guy and use mouse for games :) so for me (and I hope many others) optimized operation is important.

Here's how the shift+F11 dialog looks like when the cursor is in a unit test, for example:

image

and here a rust file, where both run, debug and individual test launch contributions are available:

image

I like your idea in #3021 to let shortcut providers contribute extra entries: I have a commit ready that adds org.eclipse.debug.ui.launchChoiceProviders for entries at the cursor (e.g. "JUnit Test: Class.method()"). I can make those entries appear in the Run As menu too, and support Ctrl+Enter in the dialog to open the configuration dialog like #3021. Would that direction work for you?

@laeubi

laeubi commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Hy @anydoby thanks for sharing some screens. I think it would be good to join the discussion at #3021 as it goes into a similar direction and maybe this one can then even be a follow up or we find an even better solution that e.g. your additional keybinding demands, the more people participate the more attention something usually get and the faster it can be integrated as we get more confidence its useful not only for some.

Before, the list showed at most 15 rows, so a project with many test
configurations needed scrolling. Now the list shows all choices, up to
60% of the height of the monitor of the dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anydoby and others added 2 commits November 16, 2026 20:58
The button and Ctrl+Enter open the launch configuration dialog for the
selected choice, before the first launch, as Ctrl+click in the "Run As"
menu. For a launch configuration, the dialog opens on it. For a launch
shortcut, the dialog uses the Ctrl+click code of the menu. The button is
disabled for a shortcut without configuration types, because Ctrl+click
launches such a shortcut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The information dialog already shows the title, for example "Run As".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anydoby

anydoby commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, @SougandhS, i'll keep this one a draft for now. I'm not sure if API changes should go to a separate PR or in here?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants