# Get all workspace symbols from SourceKit-LSP

**URL:** <https://forums.swift.org/t/get-all-workspace-symbols-from-sourcekit-lsp/63433>\
**Category:** SourceKit-LSP\
**Tags:** indexstoredb\
**Created:** [March 1, 2023, 2:57am UTC](https://forums.swift.org/t/get-all-workspace-symbols-from-sourcekit-lsp/63433 "2023-03-01T02:57:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feifan](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/feifan/32/28075_2.png) [@feifan](https://forums.swift.org/u/feifan)\
**Post date:** [March 1, 2023, 2:57am UTC](https://forums.swift.org/t/get-all-workspace-symbols-from-sourcekit-lsp/63433/1 "2023-03-01T02:57:11Z")

</div>

Is there a way to have SourceKit-LSP return _all_ workspace symbols (across all files) for the `workspace/symbol` request — either as an undocumented parameter in an LSP request, or by implementing it myself in a fork of SourceKit-LSP? In the [current implementation](https://github.com/apple/sourcekit-lsp/blob/24ce1bec10a13abf424a15a71fc2c63d8c6bb8f1/Sources/SourceKitLSP/SourceKitServer.swift#L1020), a `matching` pattern is required; if I specify an empty string, I get back an empty array.

I've lightly looked into implementing this myself, but I'm not seeing any methods along the lines of `forAllSymbols()` in `IndexStoreDB` that I could use.
