mirror of
https://github.com/voideditor/void
synced 2026-05-23 01:18:25 +00:00
Update VOID_CODEBASE_GUIDE.md
This commit is contained in:
parent
d8d21b0f25
commit
b90716e38e
1 changed files with 2 additions and 1 deletions
|
|
@ -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**.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue