mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Reload Swift Package when new file creation is indicated by DidChangeWatchedFileNotification
Implement rudementary support for `DidChangeWatchedFileNotification` for SwiftPM projects: When a file is added, reload the Swift package to compute build settings for it. This enables proper semantic functionality added to the project after the LSP server was started. Resolves SR-15633
This commit is contained in:
@@ -109,6 +109,8 @@ extension CompilationDatabaseBuildSystem: BuildSystem {
|
||||
|
||||
return compdb
|
||||
}
|
||||
|
||||
public func filesDidChange(_ events: [FileEvent]) {}
|
||||
}
|
||||
|
||||
extension CompilationDatabaseBuildSystem {
|
||||
|
||||
Reference in New Issue
Block a user