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

Function SendActiveTabUpdate

pkg/wcore/workspace.go:369–374  ·  view source on GitHub ↗
(ctx context.Context, workspaceId string, newActiveTabId string)

Source from the content-addressed store, hash-verified

367}
368
369func SendActiveTabUpdate(ctx context.Context, workspaceId string, newActiveTabId string) {
370 eventbus.SendEventToElectron(eventbus.WSEventType{
371 EventType: eventbus.WSEvent_ElectronUpdateActiveTab,
372 Data: &waveobj.ActiveTabUpdate{WorkspaceId: workspaceId, NewActiveTabId: newActiveTabId},
373 })
374}
375
376func UpdateWorkspaceTabIds(ctx context.Context, workspaceId string, tabIds []string) error {
377 ws, _ := wstore.DBGet[*waveobj.Workspace](ctx, workspaceId)

Callers 1

DeleteBlockFunction · 0.85

Calls 1

SendEventToElectronFunction · 0.92

Tested by

no test coverage detected