You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for reporting this. I agree on the expectation that those actions should behave according to the last search operation (no matter whether it was in the dialog or overlay).
Still, this might be a bit tricker to resolve (properly). Having a static value for the search pattern worked with the existing dialog, as there was only one for the whole workbench. Now that there is one overlay per editor, we need to ensure that the context is properly considered. Maybe it is easy to fix the behavior but I am not sure whether it may also require design change to not have it work "by accident" (as the last search operation always implicitly belongs to the editor/view of interest).
When the find/replace overlay is enabled, the 'Find Next (Ctrl+K)' (
org.eclipse.ui.edit.findNext
) command has no effect.When the find/replace overlay is disabled, it works again.
When then re-enabling the overlay, Ctrl+K still works on the 'old' search pattern that was entered in the legacy dialog.
The findNext action
org.eclipse.ui.texteditor.FindNextAction
works onorg.eclipse.ui.texteditor.FindNextAction.getDialogSettings()
which usesIDialogSettings settings = PlatformUI.getDialogSettingsProvider(FrameworkUtil.getBundle(FindNextAction.class)).getDialogSettings();
Apparently this dialog setting is not written anymore when using the new overlay.
I guess the overlay should also write to those dialog settings to keep the search histories in sync.
The text was updated successfully, but these errors were encountered: