@tsrx/language-server
v0.4.12
Published
Language Server Protocol implementation for TSRX
Keywords
Readme
@tsrx/language-server
Language Server Protocol implementation for .tsrx files. It uses Volar and
TypeScript to provide diagnostics, completions, hover information, navigation,
document symbols, highlighting, and automatic closing tags.
The language server resolves the compiler selected by the active TypeScript project, so the same tooling works with React, Preact, Solid, Vue, Ripple, Octane, and third-party TSRX targets. Ripple-runtime API completions are only enabled when the file is compiled by the Ripple target.
Installation
npm install --global @tsrx/language-serverStart the server over stdio:
tsrx-language-server --stdioIt can also be run without a global installation:
npx @tsrx/language-server --stdioConfigure your editor's LSP client for *.tsrx files with the language ID tsrx.
VS Code users can install the
TSRX Syntax for VS Code,
which bundles and starts this server automatically. Zed users can install the
TSRX extension for Zed, which also starts this
server automatically.
See the TSRX documentation and
@tsrx/typescript-plugin for target compiler
selection and TypeScript configuration.
