-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture
YarCraSy edited this page Jul 8, 2026
·
2 revisions
The extension is organized in layers to isolate VS Code, DeepSeek, UI, and domain logic.
Main layers:
-
src/adapters: shared contracts between the extension backend and the webview. -
src/core: pure logic, tools, and safety rules withoutvscodeimports. -
src/deepseekApi: DeepSeek HTTP client, streaming, FIM, and tool-call protocol. -
src/infrastructure: local persistence on top of VS Code APIs. -
src/vscodeApi: activation, commands, webviews, and concrete VS Code adapters. -
src/ui/chat: React app that runs inside the webview.
Architecture goal: keep maintainable logic outside VS Code where possible, and make external API boundaries explicit.