Skip to content

Commit 0066c90

Browse files
committed
move legacy macros to test
1 parent 1b4aff4 commit 0066c90

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

apps/debug_adapter/lib/debug_adapter/output.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule ElixirLS.DebugAdapter.Output do
99
"""
1010
alias ElixirLS.Utils.WireProtocol
1111
use GenServer
12-
use ElixirLS.DebugAdapter.Protocol
12+
import ElixirLS.DebugAdapter.Protocol.Basic
1313

1414
## Client API
1515

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ defmodule ElixirLS.DebugAdapter.Server do
1919
alias ElixirLS.DebugAdapter.{
2020
Output,
2121
Stacktrace,
22-
Protocol,
2322
Variables,
2423
Utils,
2524
BreakpointCondition,
@@ -32,8 +31,8 @@ defmodule ElixirLS.DebugAdapter.Server do
3231

3332
alias ElixirLS.DebugAdapter.Stacktrace.Frame
3433
alias ElixirLS.Utils.Launch
34+
import ElixirLS.DebugAdapter.Protocol.Basic
3535
use GenServer
36-
use Protocol
3736

3837
@temp_beam_dir ".elixir_ls/temp_beams"
3938

apps/debug_adapter/mix.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule ElixirLS.DebugAdapter.MixProject do
2323
build_embedded: false,
2424
start_permanent: true,
2525
build_per_environment: false,
26+
elixirc_paths: elixirc_paths(Mix.env()),
2627
# if we consolidate here debugged code will not work correctly
2728
# and debugged protocol implementation will not be available
2829
consolidate_protocols: false,
@@ -46,4 +47,7 @@ defmodule ElixirLS.DebugAdapter.MixProject do
4647
github: "elixir-lsp/dialyxir", ref: @dep_versions[:dialyxir_vendored], runtime: false}
4748
]
4849
end
50+
51+
defp elixirc_paths(:test), do: ["lib", "test/support"]
52+
defp elixirc_paths(_), do: ["lib"]
4953
end
File renamed without changes.

0 commit comments

Comments
 (0)