sourcekit-lsp(1)
π sourcekit-lsp(1) β the manual, but make it cute π
okay so bestie, welcome to the sourcekit-lsp(1) manual page, straight out of the Swift Documentation section. this is the whole thing, no skips, no "we'll get to that later". sit down, grab a strawberry π, and let's go.
β¨ NAME β¨
sourcekit-lsp β a Language Server Protocol implementation for Swift and C-based languages. yes. both. she's versatile. π
π¦ SYNOPSIS π¦
so if you wanna invoke the Swift Language Server Protocol, you do it like this:
sourcekit-lsp <options>
and if you wanna see the whole list of supported options (and honestly, who doesn't), you hit the --help option like so:
sourcekit-lsp --help
πΈ DESCRIPTION πΈ
okay so here's the tea. SourceKit-LSP is an implementation of the Language Server Protocol (LSP for short, iykyk) for Swift and C-based languages. it's the thing that hands your editor features like code-completion and jump-to-definition, but only if your editor speaks LSP β which, bestie, the good ones do.
she's built on top of sourcekitd and clangd for high-fidelity language support, which is a fancy way of saying she actually knows what she's talking about. and on top of that she brings a powerful source code index plus cross-language support. not me being multi-talented π
also: SourceKit-LSP supports projects that use the Swift Package Manager. periodt. π
π BUGS π
okay listen, reporting bugs is a great way for anyone to help improve Swift β like genuinely, anyone, you don't need main character energy for this one (though you can bring it). the bug tracker for Swift, which is an open-source project, lives at:
but wait π«Ά β if a bug can only be reproduced within an Xcode project or a playground, or if the bug is associated with an Apple NDA, then please file a report to Apple's Feedback Assistant instead, right here:
<https://feedbackassistant.apple.com>
π SEE ALSO π
π HOME PAGE
π APPLE DEVELOPER RESOURCES
<https://developer.apple.com/swift/resources>
π CODE REPOSITORIES
- Swift Programming Language at <https://github.com/swiftlang/swift>
- Swift Package Manager at <https://github.com/swiftlang/swift-package-manager>
and that's the whole page, no cap. this was sourcekit-lsp version 5.10.1, dated 2024-06-06 β go forth, jump to definitions, slay π
β¨π¦
π¦ where this page comes from
- debian trixie: swiftlang 6.0.3-2 Β· Apache-2.0 WITH Library exception
- ubuntu questing: swiftlang 6.0.3-2build1
- ubuntu resolute: swiftlang 6.1.3-4build1 Β· Apache-2.0 WITH Library exception
- ubuntu stonking: swiftlang 6.1.3-4build1 Β· Apache-2.0 WITH Library exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms