Remove clientID from request handling

The client ID was needed when a `MessageHandler` could handle messages from multiple connections. We don’t support this anymore (because it wasn’t needed) and so the client ID doesn’t need to get passed through as well.
This commit is contained in:
Alex Hoppen
2024-03-12 13:17:05 -07:00
parent 1fe79781df
commit 7c46df3abe
10 changed files with 29 additions and 42 deletions

View File

@@ -190,7 +190,7 @@ public actor BuildServerBuildSystem: MessageHandler {
/// the build server has sent us a notification.
///
/// We need to notify the delegate about any updated build settings.
public nonisolated func handle(_ params: some NotificationType, from clientID: ObjectIdentifier) {
public nonisolated func handle(_ params: some NotificationType) {
logger.info(
"""
Received notification from build server:
@@ -212,7 +212,6 @@ public actor BuildServerBuildSystem: MessageHandler {
public nonisolated func handle<R: RequestType>(
_ params: R,
id: RequestID,
from clientID: ObjectIdentifier,
reply: @escaping (LSPResult<R.Response>) -> Void
) {
logger.info(