Files
sourcekit-lsp/Sources
lijunliang.9819 c40476c191 feat: Fallback to swiftmodule interface when index lookup fails for definition
Currently, `indexBasedDefinition` relies heavily on IndexStoreDB. If a symbol
belongs to a binary framework or a library that hasn't been indexed (but has
module info provided by sourcekitd), the definition request fails or returns
empty results.

This change adds a fallback mechanism in `definitionLocations`. When no
occurrences are found in the index, we check if `systemModule` information
is available on the symbol. If so, we trigger `definitionInInterface` to
generate the textual interface (via `editor.open.interface`) and return that
location.

This improves navigation for binary dependencies (XCFrameworks) and SDKs
partially covered by the index.
2025-12-31 13:07:18 +08:00
..
2025-12-02 12:27:27 +00:00
2025-08-14 20:50:38 -04:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00
2025-12-02 12:27:27 +00:00
2025-12-02 12:27:27 +00:00
2025-10-31 14:11:11 -07:00