Skip to content

Commit 0983a3e

Browse files
committed
fix dialyzer issues
1 parent 6b4776a commit 0983a3e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/debug_adapter/lib/debug_adapter/breakpoint_condition.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ defmodule ElixirLS.DebugAdapter.BreakpointCondition do
1717
module,
1818
module,
1919
non_neg_integer,
20+
Macro.Env.t(),
2021
String.t(),
2122
String.t() | nil,
2223
String.t()
@@ -29,7 +30,7 @@ defmodule ElixirLS.DebugAdapter.BreakpointCondition do
2930
)
3031
end
3132

32-
@spec unregister_condition(module, module, non_neg_integer) :: :ok
33+
@spec unregister_condition(module, module, [non_neg_integer]) :: :ok
3334
def unregister_condition(name \\ __MODULE__, module, line) do
3435
GenServer.cast(name, {:unregister_condition, {module, line}})
3536
end
@@ -40,7 +41,7 @@ defmodule ElixirLS.DebugAdapter.BreakpointCondition do
4041
end
4142

4243
@spec get_condition(module, non_neg_integer) ::
43-
{String.t(), String.t(), non_neg_integer, non_neg_integer}
44+
{Macro.Env.t(), String.t(), String.t(), String.t(), non_neg_integer}
4445
def get_condition(name \\ __MODULE__, number) do
4546
GenServer.call(name, {:get_condition, number})
4647
end

apps/debug_adapter/mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ defmodule ElixirLS.DebugAdapter.MixProject do
3939
defp deps do
4040
[
4141
{:elixir_sense, github: "elixir-lsp/elixir_sense", ref: @dep_versions[:elixir_sense]},
42-
{:schematic_v, github: "elixir-lsp/schematic_vendored", ref: @dep_versions[:schematic_vendored]},
42+
{:schematic_v,
43+
github: "elixir-lsp/schematic_vendored", ref: @dep_versions[:schematic_vendored]},
4344
{:typed_struct, "~> 0.3"},
4445
{:elixir_ls_utils, in_umbrella: true},
4546
{:jason_v, github: "elixir-lsp/jason", ref: @dep_versions[:jason_v]},

0 commit comments

Comments
 (0)