diff --git a/VOID_CODEBASE_GUIDE.md b/VOID_CODEBASE_GUIDE.md index fc36477a..0afec4d8 100644 --- a/VOID_CODEBASE_GUIDE.md +++ b/VOID_CODEBASE_GUIDE.md @@ -11,15 +11,15 @@ The purpose of this document is to explain how Void's codebase works. If you wan + ## Void Codebase Guide ### VSCode Rundown Here's a VSCode rundown if you're just getting started with Void. You can also see Microsoft's [wiki](https://github.com/microsoft/vscode/wiki/Source-Code-Organization) for some pictures. VSCode is an Electron app. Electron runs two processes: a **main** process (for internals) and a **browser** process (browser means HTML in general, not just "web browser").

-Credit - https://github.com/microsoft/vscode/wiki/Source-Code-Organization +Credit - https://github.com/microsoft/vscode/wiki/Source-Code-Organization

-- It's most common to use `browser/` and `electron-main/`. - Code in a `browser/` folder always lives on the browser process, and it can use `window` and other browser items. - Code in an `electron-main/` folder always lives on the main process, and it can import `node_modules`. - Code in `common/` can be used by either process, but doesn't get any special imports.