mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
call delegate on build targets change
This commit is contained in:
@@ -126,9 +126,14 @@ final class BuildServerHandler: LanguageServerEndpoint {
|
||||
public weak var delegate: BuildSystemDelegate? = nil
|
||||
|
||||
override func _registerBuiltinHandlers() {
|
||||
_register(BuildServerHandler.handleBuildTargetsChanged)
|
||||
_register(BuildServerHandler.handleFileOptionsChanged)
|
||||
}
|
||||
|
||||
func handleBuildTargetsChanged(_ notification: Notification<BuildTargetsChangedNotification>) {
|
||||
self.delegate?.buildTargetsChanged(notification.params.changes)
|
||||
}
|
||||
|
||||
func handleFileOptionsChanged(_ notification: Notification<FileOptionsChangedNotification>) {
|
||||
// TODO: add delegate method to include the changed settings directly
|
||||
self.delegate?.fileBuildSettingsChanged([notification.params.uri])
|
||||
|
||||
Reference in New Issue
Block a user