swiftlang / sourcekit-lsp

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

Allow build systems to specify the files that SourceKit-LSP should watch #1671

Open ahoppen opened 3 days ago

ahoppen commented 3 days ago

Build systems managed by BuildSystemManager get file change notifications forwarded from the client. But SourceKitLSPServer specifies the patterns to watch for. Build systems should be able to specify their file watch patterns and we should re-register the file watching as a new build system is started, which adds new file watch patterns.

ahoppen commented 3 days ago

Synced to Apple’s issue tracker as rdar://136014553