Skip to content

Commit

Permalink
Update LSP, remove AnyCodable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Nov 12, 2022
1 parent 289a24f commit adcbd4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/OperationPlus", from: "1.6.0"),
.package(url: "https://github.com/ChimeHQ/LanguageServerProtocol", from: "0.7.5"),
.package(url: "https://github.com/ChimeHQ/LanguageServerProtocol", from: "0.8.0"),
.package(url: "https://github.com/Frizlab/FSEventsWrapper", from: "1.0.1"),
.package(url: "https://github.com/Bouke/Glob", from: "1.0.5"),
.package(url: "https://github.com/ChimeHQ/ProcessEnv", from: "0.3.0"),
Expand Down
2 changes: 1 addition & 1 deletion Sources/LanguageClient/InitializingServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ extension InitializingServer {

@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
extension InitializingServer: Server {
private func handleRequest(_ request: ServerRequest, completionHandler: @escaping (ServerResult<AnyCodable>) -> Void) -> Void {
private func handleRequest(_ request: ServerRequest, completionHandler: @escaping (ServerResult<LSPAny>) -> Void) -> Void {
queue.addOperation {
guard case .initialized(let caps) = self.state else {
assertionFailure("received a request without being initialized")
Expand Down
2 changes: 1 addition & 1 deletion Sources/LanguageClient/RestartingServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public class RestartingServer {
}
}

private func handleRequest(_ request: ServerRequest, completionHandler: @escaping (ServerResult<AnyCodable>) -> Void) -> Void {
private func handleRequest(_ request: ServerRequest, completionHandler: @escaping (ServerResult<LSPAny>) -> Void) -> Void {
queue.addOperation {
guard let handler = self.requestHandler else {
completionHandler(.failure(.handlerUnavailable(request.method.rawValue)))
Expand Down

0 comments on commit adcbd4f

Please sign in to comment.