Welcome to the Swift Language Server. This is a language server that aims to be a server that can be used by any development tool that whishes to target Swift.
Currently it provides the following interfaces to interact with it:
- An implementation of the Language Server Protocol. This is a protocol that aims to be a common interface for developer tools put for by Microsoft, especially with regards for use within Visual Studio Code.
- Once the LSP is fully implemented, other interfaces will be looked into as well. Already, the JSONRPC mechanism will add overhead in the system that isn't quite necessary, but it does provide an easier interface to use.
The system is broken up into parts that are designed to be interchangeable. Each layer of the system is agnostic of the other layers, except for the data contracts that between each layer.
At a high level, the language server responds to commands that are passed into an implementation
of a MessageSource
class. That data is processed and passed along to a MessageProtocol
implementation. From here, the data is parsed and turned into commands that can then be passed
on to a LanguageServer
instance.
Copyright (c) Kiad Studios, LLC. All rights reserved. Licensed under the MIT License. See License in the project root for license information.