Skip to content

Commit 3aae909

Browse files
committed
fix tests
1 parent bcc9d83 commit 3aae909

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

apps/elixir_ls_utils/lib/completion_engine.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,9 +1076,6 @@ defmodule ElixirLS.Utils.CompletionEngine do
10761076
cond do
10771077
not Map.has_key?(metadata.mods_funs_to_positions, {mod, nil, nil}) ->
10781078
[]
1079-
# mod == env.module and is_nil(env.function) ->
1080-
# # locals are not available in module body
1081-
# []
10821079

10831080
true ->
10841081
# local macros are available after definition

apps/language_server/lib/language_server/providers/completion/reducers/record.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.Reducers.Record do
5555
} = metadata,
5656
cursor_position
5757
) do
58-
5958
binding_env = ElixirSense.Core.Binding.from_env(env, metadata)
6059

6160
# check if we are inside local or remote call arguments and parameter is 0, 1 or 2

apps/language_server/test/providers/plugins/phoenix/scope_test.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ defmodule ElixirLS.LanguageServer.Plugins.Phoenix.ScopeTest do
5757

5858
binding = %Binding{
5959
structs: %{},
60-
variables: [],
60+
vars: [],
6161
attributes: [
6262
%ElixirSense.Core.State.AttributeInfo{
6363
name: :web_prefix,
6464
positions: [{4, 5}],
6565
type: {:atom, ExampleWeb}
6666
}
6767
],
68-
current_module: ExampleWeb.Router,
68+
module: ExampleWeb.Router,
6969
specs: %{},
7070
types: %{},
71-
mods_funs: %{}
71+
mods_funs_to_positions: %{}
7272
}
7373

7474
assert {true, ExampleWeb} = Scope.within_scope(buffer, binding)
@@ -86,7 +86,7 @@ defmodule ElixirLS.LanguageServer.Plugins.Phoenix.ScopeTest do
8686

8787
binding = %Binding{
8888
structs: %{},
89-
variables: [
89+
vars: [
9090
%ElixirSense.Core.State.VarInfo{
9191
name: :web_prefix,
9292
positions: [{5, 5}],
@@ -95,10 +95,10 @@ defmodule ElixirLS.LanguageServer.Plugins.Phoenix.ScopeTest do
9595
}
9696
],
9797
attributes: [],
98-
current_module: ExampleWeb.Router,
98+
module: ExampleWeb.Router,
9999
specs: %{},
100100
types: %{},
101-
mods_funs: %{}
101+
mods_funs_to_positions: %{}
102102
}
103103

104104
assert {true, ExampleWeb} = Scope.within_scope(buffer, binding)

0 commit comments

Comments
 (0)