https://github.com/baz-scm/lsc-ts-example
An example of a non-IDE language server cllient in typescript
https://github.com/baz-scm/lsc-ts-example
language-server language-server-client lsp
Last synced: about 2 months ago
JSON representation
An example of a non-IDE language server cllient in typescript
- Host: GitHub
- URL: https://github.com/baz-scm/lsc-ts-example
- Owner: baz-scm
- License: mit
- Created: 2023-11-26T07:50:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-26T07:58:56.000Z (over 1 year ago)
- Last Synced: 2025-01-14T05:49:22.589Z (4 months ago)
- Topics: language-server, language-server-client, lsp
- Language: TypeScript
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example Language Server Client
This repository is an example LS client, which communicates with an LS server using
websocket and the LS Protocol (LSP).The client loads all the files, then iterates over them and collects all the
definitions and references that they contain.## Running locally
To get it to run locally, you should:
1. Install python LSP via:
```shell
pip3 install websockets python-lsp-server
pylsp --w &
```
2. Update the path in [index.ts](/src/index.ts) (line 125, `rootUri`).
3. Debug the run!