@tsrx/language-server 0.3.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +40 -0
- package/dist/language-server.js +8 -0
- package/dist/language-server.js.map +1 -0
- package/dist/package.json +1 -0
- package/dist/server-DqDu7WXB.js +23496 -0
- package/dist/server-DqDu7WXB.js.map +1 -0
- package/dist/server.js +5 -0
- package/package.json +65 -0
- package/types/server.d.ts +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Dominic Gannaway
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @tsrx/language-server
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@tsrx/language-server)
|
|
4
|
+
[](https://www.npmjs.com/package/@tsrx/language-server)
|
|
5
|
+
|
|
6
|
+
Language Server Protocol implementation for `.tsrx` files. It uses Volar and
|
|
7
|
+
TypeScript to provide diagnostics, completions, hover information, navigation,
|
|
8
|
+
document symbols, highlighting, and automatic closing tags.
|
|
9
|
+
|
|
10
|
+
The language server resolves the compiler selected by the active TypeScript
|
|
11
|
+
project, so the same tooling works with React, Preact, Solid, Vue, Ripple, Octane,
|
|
12
|
+
and third-party TSRX targets. Ripple-runtime API completions are only enabled when
|
|
13
|
+
the file is compiled by the Ripple target.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install --global @tsrx/language-server
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Start the server over stdio:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
tsrx-language-server --stdio
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
It can also be run without a global installation:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx @tsrx/language-server --stdio
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Configure your editor's LSP client for `*.tsrx` files with the language ID `tsrx`.
|
|
34
|
+
VS Code users can install the
|
|
35
|
+
[TSRX VSCode extension](https://marketplace.visualstudio.com/items?itemName=TSRX.tsrx-vscode-plugin),
|
|
36
|
+
which bundles and starts this server automatically.
|
|
37
|
+
|
|
38
|
+
See the [TSRX documentation](https://tsrx.dev/) and
|
|
39
|
+
[`@tsrx/typescript-plugin`](../typescript-plugin/README.md) for target compiler
|
|
40
|
+
selection and TypeScript configuration.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-server.js","names":["createTsrxLanguageServer"],"sources":["../src/language-server.js"],"sourcesContent":["#!/usr/bin/env node\n\nimport { createTsrxLanguageServer } from './server.js';\n\ncreateTsrxLanguageServer();\n"],"mappings":";;;;AAIAA,yCAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|