Skip to content

Handle plugins when background indexing is disabled #2260

@yikesboy

Description

@yikesboy

Problem
SourceKit-LSP fails to index Swift source code that is generated by build tool plugins during compilation, which results in:

  • No type information for generated code in the main application under Sources
  • Unable to jump to definitions of generated code
  • Missing autocompletion for symbols from generated code
  • etc...

Environment
Editor: Neovim
Swift: 6.1
Platform: Arch Linux
Build Tool: SPM

Context
The VSCode extension handles this correctly by default, so I think it would make sense to at least optionally support it within SourceKit-LSP.
Generated files are located in .build
Issue affects just LSP; compilation works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions