MCPcopy
hub / github.com/wavetermdev/waveterm / QueueLayoutActionForTab

Function QueueLayoutActionForTab

pkg/wcore/layout.go:107–114  ·  view source on GitHub ↗
(ctx context.Context, tabId string, actions ...waveobj.LayoutActionData)

Source from the content-addressed store, hash-verified

105}
106
107func QueueLayoutActionForTab(ctx context.Context, tabId string, actions ...waveobj.LayoutActionData) error {
108 layoutStateId, err := GetLayoutIdForTab(ctx, tabId)
109 if err != nil {
110 return err
111 }
112
113 return QueueLayoutAction(ctx, layoutStateId, actions...)
114}
115
116func ApplyPortableLayout(ctx context.Context, tabId string, layout PortableLayout, recordTelemetry bool) error {
117 actions := make([]waveobj.LayoutActionData, len(layout)+1)

Callers 4

CreateBlockCommandMethod · 0.92
DeleteBlockCommandMethod · 0.92
CleanupOrphanedBlocksMethod · 0.92
ApplyPortableLayoutFunction · 0.85

Calls 2

GetLayoutIdForTabFunction · 0.85
QueueLayoutActionFunction · 0.85

Tested by

no test coverage detected