Skip to content

Update Show In MRU when triggered from Open Resource dialog#4059

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:open-resource-showin-mru
Jun 5, 2026
Merged

Update Show In MRU when triggered from Open Resource dialog#4059
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:open-resource-showin-mru

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Jun 3, 2026

The Open Resource dialog drives Show In through its own actions (both the dropdown and the implicit action on a non-file selection), calling showView and IShowInTarget.show directly rather than the Navigate > Show In command. As a result WorkbenchPage.performedShowIn was never called and the most-recently-used order of Show In targets was left untouched, unlike the regular Show In popup.

This promotes the used target via performedShowIn after a successful show, so launching Show In from Open Resource feeds the same MRU list as the standard command.

Fixes #4058

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Test Results

   861 files  ±0     861 suites  ±0   58m 41s ⏱️ + 4m 5s
 8 034 tests ±0   7 791 ✅ +1  243 💤 ±0  0 ❌  - 1 
20 541 runs  ±0  19 886 ✅ +3  655 💤 ±0  0 ❌  - 3 

Results for commit 439bbc5. ± Comparison against base commit 2c46bb5.

♻️ This comment has been updated with latest results.

Using Show In from the Open Resource dialog, either via the dropdown or
the implicit action on a non-file selection, opened the target view but
never updated the most-recently-used order. Both paths call showView and
IShowInTarget.show directly instead of the Navigate > Show In command, so
WorkbenchPage.performedShowIn was never invoked and the MRU list stayed
unchanged.

Promote the used target via performedShowIn after a successful show, so
the Open Resource dialog feeds the same MRU as the regular Show In.

Fixes eclipse-platform#4058
@vogella vogella force-pushed the open-resource-showin-mru branch from b638b63 to 439bbc5 Compare June 5, 2026 07:53
@vogella vogella merged commit ebc7b49 into eclipse-platform:master Jun 5, 2026
18 checks passed
@vogella vogella deleted the open-resource-showin-mru branch June 5, 2026 10:01
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.

MRU list of show-in views updated by Show-in Popup but not the Open Resource Selection

1 participant