[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6927":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},6927,"sourcekit-lsp","swiftlang\u002Fsourcekit-lsp","swiftlang","Language Server Protocol implementation for Swift and C-based languages","",null,"Swift",3860,376,152,105,0,1,9,30,6,29.73,"Apache License 2.0",false,"main",[],"2026-06-12 02:01:32","# SourceKit-LSP\n\nSourceKit-LSP is an implementation of the [Language Server Protocol](https:\u002F\u002Fmicrosoft.github.io\u002Flanguage-server-protocol\u002F) (LSP) for Swift and C-based languages. It provides intelligent editor functionality like code-completion and jump-to-definition to editors that support LSP. SourceKit-LSP is built on top of [sourcekitd](https:\u002F\u002Fgithub.com\u002Fapple\u002Fswift\u002Ftree\u002Fmain\u002Ftools\u002FSourceKit) and [clangd](https:\u002F\u002Fclang.llvm.org\u002Fextra\u002Fclangd.html) for high-fidelity language support, and provides a powerful source code index as well as cross-language support. SourceKit-LSP supports projects that use the Swift Package Manager and projects that generate a `compile_commands.json` file, such as CMake.\n\n## Getting Started\n\nSourceKit-LSP is included in the the Swift toolchains available on [swift.org](http:\u002F\u002Fswift.org\u002Finstall\u002F) and is bundled with [Xcode](http:\u002F\u002Fdeveloper.apple.com\u002Fxcode\u002F).\n\n[swift.org\u002Ftools](https:\u002F\u002Fwww.swift.org\u002Ftools) has a list of popular editors that support LSP and can thus be hooked up to SourceKit-LSP to provide intelligent editor functionality as well as set-up guides.\n\n> [!IMPORTANT]\n> SourceKit-LSP does not update its global index in the background or build Swift modules in the background. Thus, a lot of cross-module or global functionality is limited if the project hasn't been built recently. To update the index or rebuild the Swift modules, build your project or enable the experimental background indexing as described in [Enable Experimental Background Indexing](Documentation\u002FEnable%20Experimental%20Background%20Indexing.md).\n\nTo learn more about SourceKit-LSP, refer to the [Documentation](Documentation).\n\n> [!NOTE]\n> If you are using SourceKit-LSP with a SwiftPM project in which you need to pass additional arguments to the `swift build` invocation, as is commonly the case for embedded projects, you need to teach SourceKit-LSP about those arguments as described in [Using SourceKit-LSP with Embedded Projects](Documentation\u002FUsing%20SourceKit-LSP%20with%20Embedded%20Projects.md).\n\n## Reporting Issues\n\nIf you should hit any issues while using SourceKit-LSP, we appreciate bug reports on [GitHub Issue](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fsourcekit-lsp\u002Fissues\u002Fnew\u002Fchoose).\n\n## Contributing\n\nIf you want to contribute code to SourceKit-LSP, see [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n","SourceKit-LSP 是一个为 Swift 和 C 系语言实现的语言服务器协议（LSP），旨在为支持 LSP 的编辑器提供代码补全、跳转到定义等智能编辑功能。该项目基于 sourcekitd 和 clangd 构建，确保了对这些语言的高度兼容性，并且能够提供强大的源码索引及跨语言支持。它适用于使用 Swift 包管理器的项目或生成 `compile_commands.json` 文件的项目（如 CMake 项目）。尽管 SourceKit-LSP 目前不支持后台自动更新全局索引或构建 Swift 模块，但用户可以通过手动构建项目来触发这些过程，或者启用实验性的后台索引功能以改善体验。",2,"2026-06-11 03:09:34","top_language"]