Skip to content

zed-rx: rx-tsc tasks - #8

Draft
oddcelot wants to merge 2 commits into
zed-rxfrom
zed-rx-tasks
Draft

oddcelot wants to merge 2 commits into
zed-rxfrom
zed-rx-tasks

Conversation

@oddcelot

@oddcelot oddcelot commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to solidjs#92.

This adds two tasks in languages/reactivescript/tasks.json, which task: spawn offers while a .rx file is open:

  • rx-tsc: type-check project runs npx --no rx-tsc --noEmit in the worktree root.
  • rx-tsc: type-check project (watch) adds --watch and runs in its own terminal.

Zed's extension docs don't mention tasks.json. Its task docs do list language extensions as a source, though, and extension_host.rs loads the file from each language folder.

Tasks don't use Zed's Node, and the extension's copy of the server isn't on the project's path. So the project needs node on the PATH, @reactivescript/language-server installed at the worktree root, and a tsconfig.json whose include names the .rx files. Yarn PnP and a package that only lives in one sub-package of a monorepo aren't covered. The README says all of that.

--no makes sure nothing gets installed: without the package, npm reports a 404 for rx-tsc.

I ran the command in a scratch project with the package installed through pnpm. It reported a wrong := write and exited 2. In a folder without the package it failed without installing anything. I haven't seen the tasks in Zed's picker yet.

Based on zed-rx, so the diff only shows this change.

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