Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tooling/zed-rx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ and see `</div>` appear; a `/** */` comment and a `//` comment keep their own
colours; `css` and `styled` templates are highlighted as CSS; the outline lists
components, sources and equations.

## Tasks

The extension adds two tasks, offered in **task: spawn** while a `.rx` file is
active: `rx-tsc: type-check project` and its `--watch` variant. Each runs
`npx --no-install rx-tsc --noEmit` in the worktree root. The extension's own
copy of the server is not on the project's path, so the project needs
`@reactivescript/language-server` in its `devDependencies` (`--no-install`
fails instead of fetching anything) and a `tsconfig.json` whose `include`
names the `.rx` files. See
[Type-checking from the command line](../rx-language-server/README.md#type-checking-from-the-command-line).

## Settings

All under `lsp.rx-language-server` in Zed's `settings.json`:
Expand Down
16 changes: 16 additions & 0 deletions tooling/zed-rx/languages/reactivescript/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"label": "rx-tsc: type-check project",
"command": "npx",
"args": ["--no-install", "rx-tsc", "--noEmit"],
"cwd": "$ZED_WORKTREE_ROOT",
"reveal": "always"
},
{
"label": "rx-tsc: type-check project (watch)",
"command": "npx",
"args": ["--no-install", "rx-tsc", "--noEmit", "--watch"],
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": true
}
]
Loading