ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- description: VS Code source code organization — layers, target environments, dependency injection, and folder structure conventions. Reference when adding new modules, services, or contributions. applyTo: src/vs/** ---
Canonical reference: https://github.com/microsoft/vscode/wiki/Source-Code-Organization
The src/vs/ core is partitioned into ordered layers — each may only import from layers below it:
1. `base` — General utilities and UI building blocks (no service dependencies) 2. `platform` — Service injection support and base services shared across layers 3. `editor` — Monaco Editor core (no node or electron-* dependencies) 4. `workbench` — Full VS Code workbench, panels, views, and framework 5. `code` — Desktop app entry point (Electron main, shared process, CLI) 6. `server` — Server app entry point for remote development 7. `sessions` — Agent Sessions window (may import from workbench and below; workbench must never import from sessions)
Within each layer, code is organized by runtime environment:
| Folder | APIs Available | May Use | |--------|---------------|---------| | common | Basic JavaScript only | — | | browser | Web/DOM APIs | common | | node | Node.js APIs | common | | electron-browser | Browser + limited Electron IPC | common, browser | | electron-utility | Electron utility process | common, node | | electron-main | Electron main process | common, node, electron-utility |
vs/workbench/{common|browser|electron-browser} — minimal workbench corevs/workbench/api — vscode.d.ts API providervs/workbench/services — core services (not contrib-specific)vs/workbench/contrib — feature contributionscontrib/ into contrib/.contribution.ts entry pointOnly code referenced from entry point files is loaded:
workbench.common.main.ts — shared dependenciesworkbench.desktop.main.ts — desktop-onlyworkbench.web.main.ts — web-onlyServices are consumed via constructor injection with decorator identifiers:
class MyComponent {
constructor(@IMyService private readonly myService: IMyService) { }
}Decorated service parameters must use their canonical service interface. Do not invent local subset interfaces or Pick<...> aliases in production to simplify tests; keep partial stubs, adapters, and other test-only conveniences in test code.
Services are provided via registerSingleton(IMyService, MyServiceImpl, InstantiationType.Delayed).