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:
@@ -219,6 +219,8 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func filesDidChange(_ events: [FileEvent]) {}
|
||||
}
|
||||
|
||||
private func loadBuildServerConfig(path: AbsolutePath, fileSystem: FileSystem) throws -> BuildServerConfig {
|
||||
|
||||
Reference in New Issue
Block a user