touchlab / xcode-kotlin

Kotlin Native Xcode Plugin
https://touchlab.co/xcodekotlin
Apache License 2.0
1.15k stars 47 forks source link

Kotlin Code Completion in Xcode #83

Open JUSTINMKAUFMAN opened 2 years ago

JUSTINMKAUFMAN commented 2 years ago

Does anyone know if it is possible to extend Xcode's code completion capabilities beyond Swift/Objective-C? I have not done much research on this, but the fact that lldb integrations are possible at least makes the question seem worth asking.

In any case, if someone here is able to indicate that this is not a complete fool's errand, I'd be happy to run a spike on it and see where it goes!

kpgalligan commented 2 years ago

I have absolutely no idea, but I don't know that you can't, so...

kpgalligan commented 2 years ago

Any thoughts on this? I'm not sure where you'd start. There are "standard" lldb integrations for debugging, but not sure if there are others that would drive code completion. We've been thinking through other integrations, like better memory profiler info. Those might be available from lldb, but that's a whole different topic. Not sure how xcode gets info on code completion. It's obviously not a platform designed to be extended (by outside people), so docs won't be easy to come by.