Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.58 KB

File metadata and controls

43 lines (29 loc) · 1.58 KB

LanguageServerProtocolHelper - Backend service for an Oberon LSP Server

Description

VS Code introduced the concept of a "Language server", a server written in the target language that uses the original compiler for providing diagnostics and navigation features. However, the protocol (based on JSON-RPC) is quite fat and nothing you want to implement in Oberon.

Therefore, a two-component solution has been chosen. A classic language server is implemented in Java, talks JSON-RPC to the client (VS Code), and a custom binary protocol is used between this language server and a LSP helper written in Oberon.

This modification implements the LSP helper for Project Oberon 2013 (and Extended Oberon and Oberon Retro Compiler).

See the LSP Helper protocol specification for more details.

Installation

ORP.Compile LSPhConstants.Mod/s RS232.Mod/s ~ ORP.Compile LSPhORS.Mod/s LSPhORB.Mod/s ~ ORP.Compile LSPhORG.Mod/s LSPhORP.Mod/s ~ ORP.Compile LSPhServer.Mod/s ~

  • Restart the system. Maybe auto-run the LSPhServer.Run command.

  • Use your newly created system with an Oberon Language Server, and enjoy the features.