MCPcopy Index your code
hub / github.com/vercel/hyper / findBySession

Function findBySession

lib/utils/term-groups.ts:3–8  ·  view source on GitHub ↗
(termGroupState: ITermState, sessionUid: string)

Source from the content-addressed store, hash-verified

1import {ITermState} from '../hyper';
2
3export default function findBySession(termGroupState: ITermState, sessionUid: string) {
4 const {termGroups} = termGroupState;
5 return Object.keys(termGroups)
6 .map((uid) => termGroups[uid])
7 .find((group) => group.sessionUid === sessionUid);
8}

Callers 6

effectFunction · 0.85
resizeSessionFunction · 0.85
ptyExitTermGroupFunction · 0.85
effectFunction · 0.85
setActiveGroupFunction · 0.85
splitGroupFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected