MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetLayoutIdForTab

Function GetLayoutIdForTab

pkg/wcore/layout.go:74–80  ·  view source on GitHub ↗
(ctx context.Context, tabId string)

Source from the content-addressed store, hash-verified

72}
73
74func GetLayoutIdForTab(ctx context.Context, tabId string) (string, error) {
75 tabObj, err := wstore.DBGet[*waveobj.Tab](ctx, tabId)
76 if err != nil {
77 return "", fmt.Errorf("unable to get layout id for given tab id %s: %w", tabId, err)
78 }
79 return tabObj.LayoutState, nil
80}
81
82func QueueLayoutAction(ctx context.Context, layoutStateId string, actions ...waveobj.LayoutActionData) error {
83 layoutStateObj, err := wstore.DBGet[*waveobj.LayoutState](ctx, layoutStateId)

Callers 1

QueueLayoutActionForTabFunction · 0.85

Calls 1

DBGetFunction · 0.92

Tested by

no test coverage detected