Skip to content

Commit e0e682b

Browse files
committed
Use chardata_to_string
1 parent e4576de commit e0e682b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/language_server/lib/language_server/diagnostics.ex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@ defmodule ElixirLS.LanguageServer.Diagnostics do
1414
end
1515
end
1616

17-
defp extract_message_info(list, root_path) when is_list(list) do
18-
list
19-
|> Enum.join()
20-
|> extract_message_info(root_path)
21-
end
22-
2317
defp extract_message_info(diagnostic_message, root_path) do
2418
{reversed_stacktrace, reversed_description} =
2519
diagnostic_message
20+
|> IO.chardata_to_string()
2621
|> String.trim_trailing()
2722
|> SourceFile.lines()
2823
|> Enum.reverse()

0 commit comments

Comments
 (0)