swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.33k stars 280 forks source link

Handle new swift-syntax closure expansion behavior #1831

Open woolsweater opened 1 week ago

woolsweater commented 1 week ago

This resolves https://github.com/swiftlang/sourcekit-lsp/issues/1788, following the discussion of alternatives on https://github.com/swiftlang/sourcekit-lsp/pulls/1789. The bulk of the change updates the translation from SourceKit placeholders to LSP placeholders to handle nesting, which is implemented in https://github.com/swiftlang/swift-syntax/pull/2897

https://github.com/user-attachments/assets/0d5cca51-95f9-44e9-8a48-92a296e40678