MCPcopy Index your code
hub / github.com/coder/coder / setCurrentChat

Method setCurrentChat

coderd/x/chatd/chatd.go:701–705  ·  view source on GitHub ↗
(chat database.Chat)

Source from the content-addressed store, hash-verified

699}
700
701func (c *turnWorkspaceContext) setCurrentChat(chat database.Chat) {
702 c.chatStateMu.Lock()
703 *c.currentChat = chat
704 c.chatStateMu.Unlock()
705}
706
707func (c *turnWorkspaceContext) currentChatSnapshot() database.Chat {
708 c.chatStateMu.Lock()

Callers 3

selectWorkspaceMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected