feat(config): support explicit tsgo checker
Merged
CH
6mo ago+150+150+012345678901234567890123456789-9-9-0123456789
Summary
Lets you choose tsgo, the native TypeScript preview compiler, as the TypeScript
checker. Defaults don't change: tsc stays the default, and tsgo runs only when
you ask for it.
What changed
format.rs,configure.rs: treat tsgo the same way as tsc where the
invocation is identical, plus Windows shim detection.- Config and schema: add tsgo to the checker enum (opencode and pi), the schema
asset, and the generator. - Docs: README lists tsc as the default and tsgo as an explicit opt-in.
- Tests: checker selection in configure.
Why opt-in only
tsgo is still a preview build. Making it the default would change type-checking
for every TypeScript project, so it runs only when configured.
Validation
cargo fmt --check;cargo test -p agent-file-tools configurebun run typecheckin both plugins
Summary by cubic
Adds opt-in support for tsgo as the TypeScript checker. Defaults remain tsc; nothing changes unless you explicitly configure tsgo.
-
New Features
- Added
tsgoto checker enums and schemas across AFT,opencodeandpiplugins. - Execute
tsgowith the same args astsc, with Windows shim detection, diagnostic parsing, and consistentchecker_commandhandling (no behavior change). - Added install hint for
tsgoand tests for selection, diagnostics, and configure warnings.
- Added
-
Migration
- Enable by setting
"checker": { "typescript": "tsgo" }in your config. - Install
@typescript/native-preview(dev or global).
- Enable by setting