SolaWing / xcode-build-server

a build server protocol implementation for integrate xcode with sourcekit-lsp
MIT License
426 stars 19 forks source link

Jump to definition of modules like SwiftUI #11

Closed kkharji closed 2 years ago

kkharji commented 2 years ago

Hey @SolaWing , I wonder if this can be fixed somehow or is it strictly an Xcode IDE thing..

Basically, sometimes I find it helpful to jump to protocols like View and understand it bit. On Xcode, this just works.

Thanks

SolaWing commented 2 years ago

@tami5 this is possible, sourcekit provide api to open a module generated interface, and can jump to it. but sourcekit-lsp haven’t yet implemented it. maybe a sourcekit-lsp patch can implement this. build server’s duty is only provide compile flags.

kkharji commented 2 years ago

That's odd, feature exists but isn't accessible. Well patching seems a viable solution, but perhaps not worth it. Sad we can't open an issue on sourcekit-lsp repo,

Thanks @SolaWing