requestCurrentInstanceToggleSearchOverlay method

void requestCurrentInstanceToggleSearchOverlay()

Essentially, this causes the search-and-replace overlay to be toggled.

  1. The instanceId of the active instance will be fetched.
  2. The instance will be notified of the request.

Implementation

void requestCurrentInstanceToggleSearchOverlay() {
  if (api.workspace.workspaceConfigs.activeInstance != null) {
    AffogatoEvents.editorInstanceRequestToggleSearchOverlayEventsController
        .add(EditorInstanceRequestToggleSearchOverlayEvent(
            api.workspace.workspaceConfigs.activeInstance!));
  }
}