Skip to content

Commit 90dfb2a

Browse files
committed
rename argument to lines
1 parent 53f66f4 commit 90dfb2a

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

apps/debug_adapter/lib/debug_adapter/breakpoint_condition.ex

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,29 @@ defmodule ElixirLS.DebugAdapter.BreakpointCondition do
2323
String.t()
2424
) ::
2525
{:ok, {module, atom}} | {:error, :limit_reached}
26-
def register_condition(name \\ __MODULE__, module, line, env, condition, log_message, hit_count) do
26+
def register_condition(
27+
name \\ __MODULE__,
28+
module,
29+
lines,
30+
env,
31+
condition,
32+
log_message,
33+
hit_count
34+
) do
2735
GenServer.call(
2836
name,
29-
{:register_condition, {module, line}, env, condition, log_message, hit_count}
37+
{:register_condition, {module, lines}, env, condition, log_message, hit_count}
3038
)
3139
end
3240

3341
@spec unregister_condition(module, module, [non_neg_integer]) :: :ok
34-
def unregister_condition(name \\ __MODULE__, module, line) do
35-
GenServer.cast(name, {:unregister_condition, {module, line}})
42+
def unregister_condition(name \\ __MODULE__, module, lines) do
43+
GenServer.cast(name, {:unregister_condition, {module, lines}})
3644
end
3745

3846
@spec has_condition?(module, module, non_neg_integer) :: boolean
39-
def has_condition?(name \\ __MODULE__, module, line) do
40-
GenServer.call(name, {:has_condition?, {module, line}})
47+
def has_condition?(name \\ __MODULE__, module, lines) do
48+
GenServer.call(name, {:has_condition?, {module, lines}})
4149
end
4250

4351
@spec get_condition(module, non_neg_integer) ::

0 commit comments

Comments
 (0)