Skip to content

Commit

Permalink
fix: correctly set compiler diagnostic columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 25, 2023
1 parent 986f326 commit d2bbae8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/next_ls/extensions/elixir_extension.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ defmodule NextLS.ElixirExtension do
%GenLSP.Structures.Range{
start: %GenLSP.Structures.Position{
line: start_line - 1,
character: start_col
character: start_col - 1
},
end: %GenLSP.Structures.Position{
line: end_line - 1,
character: end_col
character: end_col - 1
}
}
end
Expand All @@ -71,7 +71,7 @@ defmodule NextLS.ElixirExtension do
%GenLSP.Structures.Range{
start: %GenLSP.Structures.Position{
line: line - 1,
character: col
character: col - 1
},
end: %GenLSP.Structures.Position{
line: line - 1,
Expand Down
6 changes: 3 additions & 3 deletions test/next_ls/extensions/elixir_extension_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ defmodule NextLS.ElixirExtensionTest do
range: %GenLSP.Structures.Range{
start: %GenLSP.Structures.Position{
line: 3,
character: 7
character: 6
},
end: %GenLSP.Structures.Position{
line: 3,
Expand All @@ -124,11 +124,11 @@ defmodule NextLS.ElixirExtensionTest do
range: %GenLSP.Structures.Range{
start: %GenLSP.Structures.Position{
line: 3,
character: 7
character: 6
},
end: %GenLSP.Structures.Position{
line: 7,
character: 3
character: 2
}
}
}
Expand Down

0 comments on commit d2bbae8

Please sign in to comment.