2.6 KiB
2.6 KiB
TODO dvdsk copy latest from notes
These are some terms and structures frequently used throughout the zed codebase. This is a best effort list. PR's are very welcome.
Questions:
- Can we generate this list form doc comments throughout zed?
GPUI
Context
: A wrapper around the App struct with specialized behavior for a specific EntityApp
: A singleton which holds the full application state including all the entities.AsyncApp
:Window
:Task
:Executor
:- both background and foreground
Entity
: A strong, well-typed reference to a struct which is managed by gpui. Effectively a pointer into the Context.Global
: A singleton type which has only one valueEvent
: A datatype which can be send by an Entity to subscribersAction
: An event that represents a user's keyboard input that can be handled by listerners Example:file finder: toggle
Subscription
: An event handler that is used to react to the changes of state in the application.- Emitted event handling
- Observing {new,release,on notify} of an entity
Focus
: The place where keystrokes are handled firstElement
: An type that can be renderedAnyElement
: A type erased version of an Elementelement expression
: An expression that builds an element tree, example:
h_flex()
.id(text[i])
.relative()
.when(selected, |this| {
this.child(
div()
.h_4()
.absolute()
etc etc
Zed
Workspace
: The root of the windowBuffer
: The in memory representation of a 'file' together with relevant data such as syntax trees, git status and diagnostics.Picker
: A model showing a list of items. When an item is selected you can confirm the item and then something happens.PickerDelegate
: A trait used to specialize behavior for a PickerModal
: todo!Project
: todo!Stores
: todo!
Collab
Upstream client
: The zed client which has shared their workspaceDownstream client
: The zed client joining a shared workspace
Debugger
DapStore
: Is an entity that manages debugger sessionsdebugger::Session
: Is an entity that manages the lifecycle of a debug session and communication with DAPSBreakpointStore
: Is an entity that manages breakpoints states in local and remote instances of ZedDebugSession
: Manages a debug session's UI and running stateRunningState
: Directily manages all the views of a debug sessionVariableList
: The variable and watch list view of a debug sessionConsole
Terminal
BreakpointList
- `