Skip to content

zed-rx: rx-tsc tasks - #8

Draft
oddcelot wants to merge 1 commit into
zed-rxfrom
zed-rx-tasks
Draft

oddcelot wants to merge 1 commit 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-install 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.

The extension's copy of the server isn't on the project's path. So the project needs @reactivescript/language-server as a dev dependency, and a tsconfig.json whose include names the .rx files. The README says so. --no-install makes a project without the package fail instead of npx downloading something called 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