react-decor-ts-plugin
v0.3.0
Published
tsserver plugin serving react-decor decorated files to the language service through same-length virtualization. Its own package because tsserver only loads bare package names (typescript.js: "only package name is allowed plugin name").
Maintainers
Readme
react-decor-ts-plugin
tsserver plugin for react-decor decorated
files (*.at.tsx): the editor shows the raw @Card text while the language
service sees the same-length virtualized text, so directives get zero squiggles
and hover / go-to-definition / completions work inside decorator expressions.
Malformed directives surface as react-decor semantic diagnostics (the AT catalog).
A separate package because tsserver only loads bare package names as plugins.
// tsconfig.json
"compilerOptions": {
"plugins": [{ "name": "react-decor-ts-plugin" }]
}The editor must run the workspace TypeScript (VS Code: TypeScript: Select
TypeScript Version → Use Workspace Version) — built-in TS never loads
workspace-local plugins.
