Send initialized notification from client instead of server (#85)
This commit is contained in:
parent
29aa74d137
commit
25dee3bb4c
1 changed files with 130 additions and 12 deletions
|
|
@ -496,12 +496,6 @@ public actor Server {
|
|||
protocolVersion: params.protocolVersion
|
||||
)
|
||||
|
||||
// Send initialized notification after a short delay
|
||||
Task {
|
||||
try? await Task.sleep(for: .milliseconds(10))
|
||||
try? await self.notify(InitializedNotification.message())
|
||||
}
|
||||
|
||||
return Initialize.Result(
|
||||
protocolVersion: Version.latest,
|
||||
capabilities: await self.capabilities,
|
||||
|
|
@ -571,4 +565,4 @@ extension Server.Batch.Item: Codable {
|
|||
try notification.encode(to: encoder)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue