mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
630 B
630 B
Project Coding Rules (Non-Obvious Only)
- Always use
safeWriteJson()fromsrc/utils/safeWriteJson.tsinstead ofJSON.stringifyfor file writes (prevents corruption) - Extension code in
src/directory, NOT inapps/(counterintuitive structure) - Webview UI in
webview-ui/runs with restricted APIs - no localStorage, limited browser features - IPC patterns MUST follow
src/core/webview/webviewMessageHandler.tsstructure - Tests must be in
__tests__folders or.spec.tsfiles (vitest won't find them otherwise) - VSCode API mocked differently:
src/__mocks__/vscode.jsvswebview-ui/src/__mocks__/vscode.ts