How to use the @kui-shell/core.getSidecarState function in @kui-shell/core

To help you get started, we’ve selected a few @kui-shell/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / kui / plugins / plugin-bash-like / src / pty / client.ts View on Github external
function setCachedSize(tab: Tab, { rows, cols }: { rows: number; cols: number }) {
  tab['_kui_pty_cachedSize'] = {
    rows,
    cols,
    sidecarState: getSidecarState(tab),
    resizeGeneration
  }
}
github IBM / kui / plugins / plugin-bash-like / src / pty / client.ts View on Github external
function getCachedSize(tab: Tab): Size {
  const cachedSize: Size = tab['_kui_pty_cachedSize']
  if (
    cachedSize &&
    cachedSize.sidecarState === getSidecarState(tab) &&
    cachedSize.resizeGeneration === resizeGeneration
  ) {
    return cachedSize
  }
}
function setCachedSize(tab: Tab, { rows, cols }: { rows: number; cols: number }) {