Handle the new request in the server

This commit is contained in:
ryuukk 2023-11-19 13:30:50 +01:00
parent 18999c8452
commit 5bc2a5af37
1 changed files with 5 additions and 0 deletions

View File

@ -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");
}