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:
Alex Hoppen
2022-01-19 11:20:10 +01:00
parent 2a7b2c789d
commit 9a5b1e81ef
12 changed files with 145 additions and 2 deletions

View File

@@ -109,6 +109,8 @@ extension CompilationDatabaseBuildSystem: BuildSystem {
return compdb
}
public func filesDidChange(_ events: [FileEvent]) {}
}
extension CompilationDatabaseBuildSystem {