Skip to content

Commit cc88cde

Browse files
committed
remove no longer needed correction
1 parent 8512037 commit cc88cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/language_server/lib/language_server/ast_utils.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ defmodule ElixirLS.LanguageServer.AstUtils do
9292
line = Keyword.get(meta, :line) - 1
9393
column = Keyword.get(meta, :column) - 1
9494
{end_line, end_column} = get_eoe_by_formatting(ast, {line, column}, options)
95-
# on elixir 1.15+ formatter changes charlist '' to ~c"" sigil so we need to correct columns
95+
# on elixir 1.15-1.17 formatter changes charlist '' to ~c"" sigil so we need to correct columns
9696
# if charlist is single line
9797
correction =
98-
if end_line == line and Version.match?(System.version(), ">= 1.15.0-dev") do
98+
if end_line == line and Version.match?(System.version(), ">= 1.15.0-dev") and Version.match?(System.version(), "< 1.18.0-dev") do
9999
2
100100
else
101101
0

0 commit comments

Comments
 (0)