From 45778d57353360a8a203dcbad3c47c91b1e049a5 Mon Sep 17 00:00:00 2001
From: Andrew Pareles <43356051+andrewpareles@users.noreply.github.com>
Date: Fri, 18 Apr 2025 18:49:17 -0700
Subject: [PATCH] Update VOID_CODEBASE_GUIDE.md
---
VOID_CODEBASE_GUIDE.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/VOID_CODEBASE_GUIDE.md b/VOID_CODEBASE_GUIDE.md
index 0afec4d8..5636a752 100644
--- a/VOID_CODEBASE_GUIDE.md
+++ b/VOID_CODEBASE_GUIDE.md
@@ -12,12 +12,14 @@ 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").
-
+
- Code in a `browser/` folder always lives on the browser process, and it can use `window` and other browser items.
@@ -44,9 +46,9 @@ Here is some important terminology you should know if you're working inside VSCo
-- VSCode is organized into "Services". A service is just a class that mounts a single time (in computer science theory this is called a "singleton"). You can register services with `registerSingleton` so that you can easily use them in any constructor with `@`. See _dummyContrib for an example we put together on how to register them. The registration is the same every time.
+- VSCode is organized into "**Services**". A service is just a class that mounts a single time (in computer science theory this is called a "singleton"). You can register services with `registerSingleton` so that you can easily use them in any constructor with `@`. See _dummyContrib for an example we put together on how to register them. The registration is the same every time.
-- "Actions" are functions you register on VSCode so that either you or the user can call them later. They're also called "Commands".
+- "**Actions**" are functions you register on VSCode so that either you or the user can call them later. They're also called "**Commands**".
- You can run actions as a user by pressing Cmd+Shift+P (opens the command pallete), or you can run them internally by using the commandService to call them by ID. We use actions to register keybinding listeners like Cmd+L, Cmd+K, etc. The nice thing about actions is the user can change the keybindings.