Skip to content

Add Zed editor support for studio packs - #1261

Draft
piexelated wants to merge 4 commits into
masterfrom
feat/zed-editor-support
Draft

piexelated wants to merge 4 commits into
masterfrom
feat/zed-editor-support

Conversation

@piexelated

Copy link
Copy Markdown
Contributor

Adds Zed as a studio editor next to VSCode, on Bukkit and on the modded adapters.

  • Pack schemas are mirrored into the pack's .zed/settings.json, so Zed gets JSON schema completion without extra setup.
  • Pack files and editors accept JSONC comments.
  • New studio.editor setting in iris.json: vscode, zed or none. The command messages and director text now say which editor opens.
  • A hash of the schema texts is stored with the Zed settings, so Zed reloads schemas when Iris regenerates them.
  • Pack hotload ignores .zed, so writing the settings does not trigger a reload. Bukkit and modded studios now build their watchers through PackHotloadFolder.watch.
  • The editor command opens the pack of the currently open studio.
  • Modded studios write the same workspace and Zed files.

Language files: the new editor keys replace the old opening_vscode* and open_vscode keys, with translations in all 17 languages.

Depends on VolmitSoftware/VolmLib#2, which adds JSONC comment support to JSONTokener. Iris resolves VolmLib master-SNAPSHOT from JitPack, so this PR only builds upstream after that one merges.

Tested against the VolmLib branch with -PlocalVolmLibDirectory (and VOLMLIB_DIR for adapters):

  • ./gradlew :core:test: 7520 tests, 0 failures, 17 skipped
  • ./gradlew :adapters:bukkit:plugin:test: 445 tests, 0 failures
  • ./gradlew -p adapters/fabric compileJava, -p adapters/neoforge compileJava and -p adapters/forge compileJava: all succeed

Not run in a live Minecraft server or client, and not tested with a real Zed install.

@piexelated
piexelated marked this pull request as draft November 14, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant