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

Method UpdateTabNameCommand

pkg/wshrpc/wshserver/wshserver.go:158–166  ·  view source on GitHub ↗
(ctx context.Context, tabId string, newName string)

Source from the content-addressed store, hash-verified

156}
157
158func (ws *WshServer) UpdateTabNameCommand(ctx context.Context, tabId string, newName string) error {
159 oref := waveobj.ORef{OType: waveobj.OType_Tab, OID: tabId}
160 err := wstore.UpdateTabName(ctx, tabId, newName)
161 if err != nil {
162 return fmt.Errorf("error updating tab name: %w", err)
163 }
164 wcore.SendWaveObjUpdate(oref)
165 return nil
166}
167
168func (ws *WshServer) UpdateWorkspaceTabIdsCommand(ctx context.Context, workspaceId string, tabIds []string) error {
169 oref := waveobj.ORef{OType: waveobj.OType_Workspace, OID: workspaceId}

Callers

nothing calls this directly

Calls 2

UpdateTabNameFunction · 0.92
SendWaveObjUpdateFunction · 0.92

Tested by

no test coverage detected