Uploaded image for project: 'Swift'
  1. Swift
  2. SR-10806

Implement workspace/symbol request

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: SourceKit-LSP
    • Labels:

      Description

      Implement the workspace/symbol request, which given a query string returns all symbols that match.

      https://microsoft.github.io/language-server-protocol/specification#workspace_symbol

      To implement this, I suggest exposing the following methods from indexstore-db to the Swift wrapper code:

      • foreachSymbolName
      • foreachCanonicalSymbolOccurrenceByName

      Then SourceKit-LSP can use the foreachSymbolName to get all the symbol names and perform matching against them, followed by foreachCanonicalSymbolOccurrenceByName to get the symbol information.

        Attachments

          Activity

            People

            Assignee:
            literalpie Ben Kindle
            Reporter:
            benlangmuir Ben Langmuir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: