Alex Hoppen e23e300f7c Add a request to re-index all files in SourceKit-LSP
Users should not need to rely on this request. The index should always be updated automatically in the background. Having to invoke this request manes there is a bug in SourceKit-LSP's automatic re-indexing. It does, however, offer a workaround to re-index files when such a bug occurs where otherwise there would be no workaround.

rdar://127476221
Resolves #1263
2024-06-26 06:33:32 +02:00
2024-06-04 15:14:56 -07:00
2022-08-03 19:12:43 +02:00
2023-10-10 13:44:47 -07:00
2023-11-01 11:12:08 -07:00
2018-11-13 15:50:48 -08:00

SourceKit-LSP

SourceKit-LSP is an implementation of the Language Server Protocol (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 and clangd 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.

Getting Started

https://www.swift.org/tools 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.

Reporting Issues

If you should hit any issues while using SourceKit-LSP, we appreciate bug reports on GitHub Issue.

Important

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 the project.

Contributing

If you want to contribute code to SourceKit-LSP, see CONTRIBUTING.md for more information.

Description
Language Server Protocol implementation for Swift and C-based languages
Readme 14 MiB
Languages
Swift 97.3%
C 1.3%
CMake 0.7%
Python 0.7%