Skip to content

Commit d5560e7

Browse files
committed
start the formatter in the test initializer
1 parent 5e7896d commit d5560e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/language_server/test/support/server_test_helpers.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ defmodule ElixirLS.LanguageServer.Test.ServerTestHelpers do
44
alias ElixirLS.LanguageServer.Server
55
alias ElixirLS.LanguageServer.JsonRpc
66
alias ElixirLS.LanguageServer.Providers.WorkspaceSymbols
7+
alias ElixirLS.LanguageServer.Providers.Formatting
78
alias ElixirLS.Utils.PacketCapture
89

910
def start_server do
@@ -15,6 +16,9 @@ defmodule ElixirLS.LanguageServer.Test.ServerTestHelpers do
1516
json_rpc = start_supervised!({JsonRpc, name: JsonRpc})
1617
Process.group_leader(json_rpc, packet_capture)
1718

19+
formatting = start_supervised!({Formatting, []})
20+
Process.group_leader(formatting, packet_capture)
21+
1822
workspace_symbols = start_supervised!({WorkspaceSymbols, []})
1923
Process.group_leader(workspace_symbols, packet_capture)
2024

0 commit comments

Comments
 (0)