From 5bc2a5af376be8fe2e2f857657fe44eaf433b305 Mon Sep 17 00:00:00 2001 From: ryuukk Date: Sun, 19 Nov 2023 13:30:50 +0100 Subject: [PATCH] Handle the new request in the server --- src/dcd/server/main.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dcd/server/main.d b/src/dcd/server/main.d index 3f3828d..7dbfd78 100644 --- a/src/dcd/server/main.d +++ b/src/dcd/server/main.d @@ -347,6 +347,11 @@ int runServer(string[] args) s.trySendResponse(symbolSearch(request, cache), "Could not perform symbol search"); else if (request.kind & RequestKind.localUse) s.trySendResponse(findLocalUse(request, cache), "Couldnot find local usage"); + else if (request.kind & RequestKind.inlayHints) + { + info("Getting inlay hints"); + s.trySendResponse(getInlayHints(request, cache), "Could not get inlay hints"); + } else if (needResponse) s.trySendResponse(AutocompleteResponse.ack, "Could not send ack"); }