setDeepLinkSession method

void setDeepLinkSession(
  1. DeepLinkAction action,
  2. String cwd
)

Parse a deep link and set session state.

Implementation

void setDeepLinkSession(DeepLinkAction action, String cwd) {
  isDeepLinkSession.value = true;
  currentAction.value = action;
  bannerText.value = buildDeepLinkBanner(
    DeepLinkBannerInfo(
      cwd: cwd,
      prefillLength: action.query?.length,
      repo: action.repo,
    ),
  );
}