Skip to content

Commit

Permalink
Remove no longer needed cancel handler
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jan 9, 2025
1 parent 910211e commit ff8eb2a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/languageserverinstance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ function Base.run(server::LanguageServerInstance; timings = [])
msg_dispatcher[initialize_request_type] = request_wrapper(initialize_request, server)
msg_dispatcher[initialized_notification_type] = notification_wrapper(initialized_notification, server)
msg_dispatcher[shutdown_request_type] = request_wrapper(shutdown_request, server)
msg_dispatcher[cancel_notification_type] = notification_wrapper(cancel_notification, server)
msg_dispatcher[setTrace_notification_type] = notification_wrapper(setTrace_notification, server)
msg_dispatcher[setTraceNotification_notification_type] = notification_wrapper(setTraceNotification_notification, server)
msg_dispatcher[julia_getCurrentBlockRange_request_type] = request_wrapper(julia_getCurrentBlockRange_request, server)
Expand Down
1 change: 0 additions & 1 deletion src/protocol/messagedefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const shutdown_request_type = JSONRPC.RequestType("shutdown", Nothing, Nothing)
const exit_notification_type = JSONRPC.NotificationType("exit", Nothing)
const client_registerCapability_request_type = JSONRPC.RequestType("client/registerCapability", RegistrationParams, Nothing)

const cancel_notification_type = JSONRPC.NotificationType("\$/cancelRequest", CancelParams)
const setTrace_notification_type = JSONRPC.NotificationType("\$/setTrace", SetTraceParams)
# TODO This seems to not exist in the spec?
const setTraceNotification_notification_type = JSONRPC.NotificationType("\$/setTraceNotification", Nothing)
Expand Down
3 changes: 0 additions & 3 deletions src/requests/misc.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
function cancel_notification(params::CancelParams, server::LanguageServerInstance, conn)
end

function setTrace_notification(params::SetTraceParams, server::LanguageServerInstance, conn)
end

Expand Down

0 comments on commit ff8eb2a

Please sign in to comment.