From 555b19162c502838e82f6ecff42383c0da076801 Mon Sep 17 00:00:00 2001
From: Mitchell Hanberg <mitch@mitchellhanberg.com>
Date: Mon, 21 Aug 2023 13:47:25 -0400
Subject: [PATCH] fix: don't timeout when calling functions on the runtime
 (#196)

Found by a user whose project takes > 5 seconds for Credo to run
---
 lib/next_ls/runtime.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/next_ls/runtime.ex b/lib/next_ls/runtime.ex
index 161c0d44..bd948abd 100644
--- a/lib/next_ls/runtime.ex
+++ b/lib/next_ls/runtime.ex
@@ -12,7 +12,7 @@ defmodule NextLS.Runtime do
   @type mod_fun_arg :: {atom(), atom(), list()}
 
   @spec call(pid(), mod_fun_arg()) :: any()
-  def call(server, mfa), do: GenServer.call(server, {:call, mfa})
+  def call(server, mfa), do: GenServer.call(server, {:call, mfa}, :infinity)
 
   @spec ready?(pid()) :: boolean()
   def ready?(server), do: GenServer.call(server, :ready?)