You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From dialyzer warning:
```
lib/language_server/providers/folding_range/line.ex:11:invalid_contract
The @SPEC for the function does not match the success typing of the function.
Function:
ElixirLS.LanguageServer.Providers.FoldingRange.Line.format_string/1
Success typing:
@SPEC format_string(
binary()
| %ElixirLS.LanguageServer.SourceFile{
:text =>
binary()
| %ElixirLS.LanguageServer.SourceFile{
:text =>
binary()
| %ElixirLS.LanguageServer.SourceFile{:text => binary() | map(), _ => _},
_ => _
},
_ => _
}
) :: [{binary(), {non_neg_integer(), nil | non_neg_integer()}, binary()}]
```
The root cause is `embellish_lines_with_metadata/1` return a list
of `t()` but `format_string/1` said it returns a list of `cell()`
which is incorrect.
0 commit comments