2025-02-19 05:55:33 +00:00
|
|
|
# monaco-editor-lsp-next
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
A demo project demonstrating LSP integration using Nextjs + @monaco-editor/react + monaco-languageclient.
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
## Quick Start
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
1. **Start LSP Containers**
|
|
|
|
```bash
|
|
|
|
cd docker
|
|
|
|
docker compose up -d
|
|
|
|
cd ..
|
|
|
|
```
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
2. **Install Dependencies**
|
|
|
|
```bash
|
|
|
|
bun install
|
|
|
|
```
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
3. **Start Development Server**
|
|
|
|
```bash
|
|
|
|
bun run dev
|
|
|
|
```
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
## LSP Configuration
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
The project includes preconfigured LSP servers for:
|
|
|
|
- C (port 4594)
|
|
|
|
- C++ (port 4595)
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
Using [jsonrpc-ws-proxy](https://github.com/wylieconlon/jsonrpc-ws-proxy) to bridge Monaco Editor with clangd.
|