LanguageServer

main

Language Server Protocol server infrastructure for Swift
ChimeHQ/LanguageServer

Platforms Documentation Discord

LanguageServer

This is a Swift library for building language servers that implement the Language Server Protocol. It is built on top of the LanguageServerProtocol library.

Integration

dependencies: [
    .package(url: "https://github.com/ChimeHQ/LanguageServer", branch: "main")
]

Usage

First, you'll need a way to handle the JSON-RPC messaging. The JSONRPCClientConnection type handles this translation. To do this, it needs a raw communications channel. This is based on the DataChannel type from JSONRPC.

import JSONRPC
import LanguageServer 

let channel = DataChannel.stdioPipe()
let connection = JSONRPCClientConnection(channel)

Contributing and Collaboration

I would love to hear from you! Issues or pull requests work great. A Discord server is also available for live help, but I have a strong bias towards answering in the form of documenation.

I prefer collaboration, and would love to find ways to work together if you have a similar project.

I prefer indentation with tabs for improved accessibility. But, I'd rather you use the system you want and make a PR than hesitate because of whitespace.

By participating in this project you agree to abide by the Contributor Code of Conduct.

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

Last updated: Sun Apr 14 2024 00:54:20 GMT-0900 (Hawaii-Aleutian Daylight Time)