A Swift implementation of the open Language Server Protocol.
Swift
Latest commit 46490bf Feb 24, 2017 @RLovelett committed on GitHub Merge pull request #12 from RLovelett/swiftpm-integration
Basic SwiftPM Integration

README.md

Swift Language Server

macOS Linux Apache 2

Overview

A Swift implementation of the open Language Server Protocol. The Language Server protocol is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, goto definition, find all references and alike into the tool.

Currently this implementation is used by Swift for Visual Studio Code.

Prerequisites

Swift

  • Swift Open Source swift-DEVELOPMENT-SNAPSHOT-2016-12-01-a toolchain (Minimum REQUIRED for latest release)

macOS

  • macOS 10.11.6 (El Capitan) or higher
  • Xcode Version 8.2 beta (8C30a) or higher using one of the above toolchains (Recommended)

Linux

  • Coming Soon

Build

% cd <path-to-clone>
% swift build -Xswiftc -target -Xswiftc x86_64-apple-macosx10.11

or with Xcode

% cd <path-to-clone>
% swift package generate-xcodeproj --xcconfig-overrides settings.xcconfig

Test

% cd <path-to-clone>
% swift test -Xswiftc -target -Xswiftc x86_64-apple-macosx10.11