Skip to content

Commit 3290c02

Browse files
committed
wip
1 parent 140faf4 commit 3290c02

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

apps/language_server/test/providers/definition/locator_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ defmodule ElixirLS.LanguageServer.Providers.Definition.LocatorTest do
13241324
end_column: 18
13251325
}
13261326

1327+
# TODO: is this still a bug?
13271328
# `a` redefined in a case clause
13281329
# cursor lands in the wrong clause on 1.18
13291330
# fortunately __cursor__ inserting hacks in ElixirSense.Metadata are able to work around this

apps/language_server/test/providers/execute_command/llm_module_dependencies_test.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
3636
end
3737

3838
describe "execute/2" do
39+
if Version.match?(System.version(), ">= 1.18.0") do
3940
test "returns direct dependencies for a module" do
4041
state = %{source_files: %{}}
4142

@@ -73,7 +74,9 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
7374
# Check struct expansions
7475
assert "ElixirLS.Test.ModuleDepsC" in direct_deps.struct_expansions
7576
end
77+
end
7678

79+
if Version.match?(System.version(), ">= 1.18.0") do
7780
test "returns reverse dependencies" do
7881
state = %{source_files: %{}}
7982

@@ -107,6 +110,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
107110
# Check struct expansions
108111
assert "ElixirLS.Test.ModuleDepsB" in reverse_deps.struct_expansions
109112
end
113+
end
110114

111115
test "returns transitive compile dependencies" do
112116
state = %{source_files: %{}}
@@ -218,6 +222,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
218222
assert is_list(direct_deps.exports_dependencies)
219223
end
220224

225+
if Version.match?(System.version(), ">= 1.18.0") do
221226
test "filters reverse dependencies by function for remote calls" do
222227
state = %{source_files: %{}}
223228

@@ -251,6 +256,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
251256

252257
assert length(matching_imports) > 0
253258
end
259+
end
254260

255261
test "handles remote call with arity nil (function name only)" do
256262
state = %{source_files: %{}}

0 commit comments

Comments
 (0)