swift-unidoc icon indicating copy to clipboard operation
swift-unidoc copied to clipboard

IndexStoreDB not emitting information about out-of-Snippet symbols

Open tayloraswift opened this issue 1 year ago • 2 comments

details in #245

tayloraswift avatar Jun 01 '24 20:06 tayloraswift

based on offline sync with @ahoppen , it looks like this is not supported at the indexstore-db library level, it is a C API-only feature.

it seems the intended behavior of IndexStoreDB.symbols(inFilePath:) is to list the definitions, not occurrences, of symbols in the current file, when what we really need is to list all occurrences.

tayloraswift avatar Jun 03 '24 21:06 tayloraswift

this PR implements the API we need on the Apple side: https://github.com/apple/indexstore-db/pull/202

tayloraswift avatar Jun 03 '24 23:06 tayloraswift