RLovelett / langserver-swift

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

Fix some cross-module definition calls #53

Open chrismwendt opened 6 years ago

chrismwendt commented 6 years ago

Before:

2018-06-01 01 17 07

After:

2018-06-01 01 18 02

Admittedly, this doesn't work in all cases (e.g. the call to SourceKit.CodeComplete in https://github.com/RLovelett/langserver-swift/issues/52), which is pretty ironic because that's the case that I tried to fix 😒

If anyone has any tips for figuring out what arguments to pass to swift to get it to resolve these properly, that would be very helpful, because so far my best strategy is Try Random Combinations And Hope It Works ™️

chrismwendt commented 6 years ago

I probably don't actually understand this much more than you do. My guess is that providing more .swift files to the compiler helps it find definitions of classes/structs/protocols.