RLovelett / langserver-swift

A Swift implementation of the open Language Server Protocol.
Apache License 2.0
177 stars 16 forks source link

Allow Configuration of Path to Swift Compiler for SwiftPM #50

Open RLovelett opened 6 years ago

RLovelett commented 6 years ago

Currently there is a method findBinDirectory in Server.swift that attempts to find the path the Swift compiler.

This compiler path is used by SwiftPM to interact with the Package.swift. Currently, if this path is not found or incorrect it causes a fatalError and hard crash of the language server.

I'd like to do (at least) two things before calling this issue done.