File tree Expand file tree Collapse file tree 3 files changed +18
-19
lines changed
apps/language_server/lib/language_server Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ defmodule ElixirLS.LanguageServer.Build do
55
55
end
56
56
57
57
defp reload_project do
58
- mixfile = Path . absname ( MixfileHelpers . mix_exs )
58
+ mixfile = Path . absname ( MixfileHelpers . mix_exs ( ) )
59
59
60
60
if File . exists? ( mixfile ) do
61
61
# FIXME: Private API
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ defmodule ElixirLS.LanguageServer.Diagnostics do
238
238
239
239
% Mix.Task.Compiler.Diagnostic {
240
240
compiler_name: "ElixirLS" ,
241
- file: Path . absname ( MixfileHelpers . mix_exs ) ,
241
+ file: Path . absname ( MixfileHelpers . mix_exs ( ) ) ,
242
242
# 0 means unknown
243
243
position: 0 ,
244
244
message: msg ,
Original file line number Diff line number Diff line change @@ -28,23 +28,22 @@ defmodule ElixirLS.LanguageServer.Dialyzer.Analyzer do
28
28
:warn_undefined_callbacks
29
29
]
30
30
@ non_default_warns [
31
- :warn_contract_not_equal ,
32
- :warn_contract_subtype ,
33
- :warn_contract_supertype ,
34
- :warn_return_only_exit ,
35
- :warn_umatched_return ,
36
- :warn_unknown
37
- ] ++ (
38
- if String . to_integer ( System . otp_release ( ) ) >= 25 do
39
- [
40
- # OTP >= 25 options
41
- :warn_contract_missing_return ,
42
- :warn_contract_extra_return
43
- ]
44
- else
45
- [ ]
46
- end
47
- )
31
+ :warn_contract_not_equal ,
32
+ :warn_contract_subtype ,
33
+ :warn_contract_supertype ,
34
+ :warn_return_only_exit ,
35
+ :warn_umatched_return ,
36
+ :warn_unknown
37
+ ] ++
38
+ ( if String . to_integer ( System . otp_release ( ) ) >= 25 do
39
+ [
40
+ # OTP >= 25 options
41
+ :warn_contract_missing_return ,
42
+ :warn_contract_extra_return
43
+ ]
44
+ else
45
+ [ ]
46
+ end )
48
47
@ log_cache_length 10
49
48
50
49
defstruct [
You can’t perform that action at this time.
0 commit comments