-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture Runtime Flow
YarCraSy edited this page Jul 8, 2026
·
3 revisions
- VS Code activates the extension from the contributions declared in
package.json. -
src/Extension.tscreates the VS Code tool host. - It registers
WebviewProvider.viewType = "deepseek-copilot.chatView". - It registers
DropZoneProvider. - It registers the
openChatandaddSelectionToChatcommands.
- VS Code resolves the
deepseek-copilot.chatViewview. -
WebviewProviderloads HTML fromdist/webview. - The React UI starts with
vscodeApi. - The UI requests configuration, history, and available tools.
- The UI sends
sendMessage. -
WebviewProviderdelegates toChatHandler. -
ChatHandlerloads settings and API key. - A direct DeepSeek provider is created.
- Conversation context is built.
- Streaming or full response execution starts.
- The backend sends
streamChunk,streamReasoning,streamDone, orstreamError. -
HistoryManagerpersists the conversation.
- DeepSeek emits tool calls.
-
ToolCallSessionevaluates metadata and execution mode. - If the tool is dangerous, it sends
toolCallConfirmationRequired. - The UI asks for human confirmation.
-
ToolExecutorruns using the injectedToolWorkspace. - The result goes back to DeepSeek or is shown in the UI depending on the cycle.
- The user drags files into the drop zone or input.
- UI/backend sends
processFileDrop. -
WebviewProviderresolves URIs. - It returns
fileDropResultwith previews/context. - The chat can include those files as referenced context.