From 646dac71960ac8d4a1755377de85d72ec2011c26 Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Mon, 18 Dec 2023 20:15:22 +0100 Subject: [PATCH] format --- .../debug_adapter/lib/debug_adapter/server.ex | 25 +++++++++++-------- apps/debug_adapter/test/debugger_test.exs | 6 ++--- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/apps/debug_adapter/lib/debug_adapter/server.ex b/apps/debug_adapter/lib/debug_adapter/server.ex index 49bfeede9..0eb4a35a1 100644 --- a/apps/debug_adapter/lib/debug_adapter/server.ex +++ b/apps/debug_adapter/lib/debug_adapter/server.ex @@ -1101,15 +1101,16 @@ defmodule ElixirLS.DebugAdapter.Server do "expensive" => false } - args_scope = if frame.args != :undefined do - %{ - "name" => "arguments", - "variablesReference" => args_id, - "namedVariables" => 0, - "indexedVariables" => Enum.count(frame.args), - "expensive" => false - } - end + args_scope = + if frame.args != :undefined do + %{ + "name" => "arguments", + "variablesReference" => args_id, + "namedVariables" => 0, + "indexedVariables" => Enum.count(frame.args), + "expensive" => false + } + end messages_scope = %{ "name" => "messages", @@ -1129,7 +1130,11 @@ defmodule ElixirLS.DebugAdapter.Server do scopes = [vars_scope, versioned_vars_scope, process_info_scope] - |> Kernel.++(if frame.args != :undefined and Enum.count(frame.args) > 0, do: [args_scope], else: []) + |> Kernel.++( + if frame.args != :undefined and Enum.count(frame.args) > 0, + do: [args_scope], + else: [] + ) |> Kernel.++(if Enum.count(frame.messages) > 0, do: [messages_scope], else: []) {state, scopes} diff --git a/apps/debug_adapter/test/debugger_test.exs b/apps/debug_adapter/test/debugger_test.exs index 67c885877..f693d42fc 100644 --- a/apps/debug_adapter/test/debugger_test.exs +++ b/apps/debug_adapter/test/debugger_test.exs @@ -2322,8 +2322,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do assert Proto in :int.interpreted() assert [ - {{Proto, 2}, - [:active, :enable, :null, {BreakpointCondition, :check_0}]} + {{Proto, 2}, [:active, :enable, :null, {BreakpointCondition, :check_0}]} ] = :int.all_breaks(Proto) assert %{{Proto, :go, 1} => [2]} = :sys.get_state(server).function_breakpoints @@ -2434,8 +2433,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do assert Proto.List in :int.interpreted() assert [ - {{Proto.List, 7}, - [:active, :enable, :null, {BreakpointCondition, :check_0}]} + {{Proto.List, 7}, [:active, :enable, :null, {BreakpointCondition, :check_0}]} ] = :int.all_breaks(Proto.List) assert %{{Proto.List, :go, 1} => [7]} = :sys.get_state(server).function_breakpoints