langserver-swift icon indicating copy to clipboard operation
langserver-swift copied to clipboard

Fix some cross-module definition calls

Open chrismwendt opened this issue 7 years ago • 1 comments
trafficstars

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 avatar Jun 01 '18 08:06 chrismwendt

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.

chrismwendt avatar Jun 04 '18 07:06 chrismwendt