/CodeServer

Bridge any LSP or shell command to websocket.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

CodeServer

GoVersion Websockets LSP

A Golang project that bridges LSP over websockets for VSCode like Autocompletion for Ace Editor (used by Replit), Monaco Editor (used by VSCode) and Code Mirror.

🤔 How Does this work?

This uses the github.com/gorilla/websockets/ library to bridge cmd.Exec over websockets. This allows us to do cool things like run a LSP server and get it's output using websocket.

⚠️ Note: This project was created in 2020 out of my own need to code on a mobile device with LSP Autocompletion. The target editor for this "Ace Editor" had no public LSP Clients back then to interact with this websocket server, thus this project was abandoned in favour of Neovim.

🔨 How to build

  1. clone the repo
git clone https://github.com/CypherpunkSamurai/CodeServer.git
  1. Run the go build
go build
  1. Run the binary
./codeserver
# or for windows
codeserver.exe

😊 Credits

  • Golang Developers
  • Gorilla Websocket Library