Write Godot games in Zed: GDScript language server, debugger and scene outlines.
A Zed extension that connects Zed to the language server and debug adapter built into the Godot editor, and adds syntax highlighting and outlines for GDScript, GDShader and Godot resource files. It builds on GDQuest’s zed-gdscript.
class_name Playerextends CharacterBody2Dsignal died@export var health: int = 100func take_damage(amount: int) -> void: health -= amount if health <= 0: died.emit()
Godot’s LSP port, used by default; the debugger uses 6006
6005
Rust unit tests, run in CI with clippy and the WASM build
28
How it works
Godot stays the source of truth
The extension does not analyse GDScript itself. It forwards Zed’s requests to the Godot editor, which already knows your project, its classes and its autoloads.
01 / Godot editor
127.0.0.1:6005
Language server
Godot runs its GDScript language server while the project is open in the editor.
02 / Bridge
nc · ncat · socat
TCP to stdio
Zed talks to language servers over stdio; the extension starts the first of the three tools it finds on PATH.
03 / Zed
extension.wasm
Labels and settings
The extension passes host, port and workspace settings through and highlights completion and symbol labels.
04 / Editor
.gd · .tscn · .gdshader
What you get
Completion, hover, go to definition, outlines, and debugging from the Zed Debug UI.
What the language server gives you
Tab
Completion
Engine API, your class_name types and project symbols, from the running Godot editor.
fn
Highlighted labels
Completion and symbol entries are coloured with the GDScript grammar.
?
Hover
Signatures, types and API documentation for the symbol under the cursor.
→
Go to definition
Jump to classes, functions and variables across the project.
≡
Outline
class_name, functions, signals and variables in the outline panel.
F1
Engine docs
Go to declaration on Node2D opens its documentation page in Godot.
Debugging
Launch and attach from the Zed Debug UI
Godot’s debug adapter (port 6006) is registered with Zed. A .zed/debug.json entry is all it takes; project defaults to the workspace root.
The outline panel lists the sections of scene and resource files and the functions and uniforms of shaders, so you jump instead of scrolling. With gdshader-lsp installed, shaders also get diagnostics, completion and hover.