-
Notifications
You must be signed in to change notification settings - Fork 0
VS Code Extension Message Contract
YarCraSy edited this page Jul 8, 2026
·
2 revisions
Previous page: Commands and Views
The shared contract lives in src/adapters/message.ts. The UI must not call backend internal APIs; it only sends messages through postMessage.
-
sendMessage: sends prompt, context, and referenced files. -
cancelGeneration: cancels the active streaming/request. -
getConfig: requests configuration and API key state. -
saveConfig: saves settings and API key. -
resetConfig: restores defaults. -
testConnection: validates DeepSeek connectivity. -
getHistory: lists saved conversations. -
loadConversation: loads a conversation by id. -
deleteConversation: deletes a conversation. -
executeToolCall: approves or executes a pending tool call. -
getPathCompletions: returns workspace path suggestions for chat input autocomplete. -
getAvailableTools: gets tool metadata. -
openFile: opens a file in VS Code. -
newConversation: clears the current chat state.
-
streamChunk: incremental response text. -
streamReasoning: incremental reasoning text. -
streamDone: successful generation end. -
streamError: UI-visible error. -
configLoaded: loaded configuration. -
configSaved: save confirmation. -
history: conversation list. -
conversationLoaded: recovered conversation. -
toolCallStarted: tool call started. -
toolCallResult: tool result. -
toolCallConfirmationRequired: requires human approval. -
pathCompletions: workspace path completion response. -
availableTools: available tool metadata.
Historical naming such as provider may remain in internal names or messages, but product configuration must stay DeepSeek-only and must not expose an Ollama selector.