Update VOID_CODEBASE_GUIDE.md

This commit is contained in:
Andrew Pareles 2025-04-09 21:25:06 -07:00 committed by GitHub
parent d8d21b0f25
commit b90716e38e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,11 +13,12 @@ The purpose of this document is to explain how Void's codebase works. If you wan
### Terminology
Here is some important terminology you should know if you're working inside VSCode:
- A **URI** is a path to a file, like `/Users/.../my_file.txt`. Often URIs are called **resource**.
- A **URI** is a path to a file, like `/Users/.../my_file.txt`.
- An **Editor** is the thing that you type your code in. If you have 10 tabs open, that's just one editor! Editors contain tabs (or "models").
- A **Model** is an internal representation of a file's contents. It's shared between editors (for example, if you press `Cmd+\` to make a new editor, then the model of a file like `A.ts` is shared between them. Two editors, one model. That's how changes sync.).
- The **Workbench** is the wrapper that contains all the editors, the terminal, the file system tree, etc.
- Usually you use the `ITextModel` type for models and the `ICodeEditor` type for editors. There aren't that many other types.
- Often URIs are called **resource**.