Skip to content

Commit d2bbae8

Browse files
committedJun 25, 2023
fix: correctly set compiler diagnostic columns
1 parent 986f326 commit d2bbae8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎lib/next_ls/extensions/elixir_extension.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ defmodule NextLS.ElixirExtension do
5858
%GenLSP.Structures.Range{
5959
start: %GenLSP.Structures.Position{
6060
line: start_line - 1,
61-
character: start_col
61+
character: start_col - 1
6262
},
6363
end: %GenLSP.Structures.Position{
6464
line: end_line - 1,
65-
character: end_col
65+
character: end_col - 1
6666
}
6767
}
6868
end
@@ -71,7 +71,7 @@ defmodule NextLS.ElixirExtension do
7171
%GenLSP.Structures.Range{
7272
start: %GenLSP.Structures.Position{
7373
line: line - 1,
74-
character: col
74+
character: col - 1
7575
},
7676
end: %GenLSP.Structures.Position{
7777
line: line - 1,

‎test/next_ls/extensions/elixir_extension_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ defmodule NextLS.ElixirExtensionTest do
107107
range: %GenLSP.Structures.Range{
108108
start: %GenLSP.Structures.Position{
109109
line: 3,
110-
character: 7
110+
character: 6
111111
},
112112
end: %GenLSP.Structures.Position{
113113
line: 3,
@@ -124,11 +124,11 @@ defmodule NextLS.ElixirExtensionTest do
124124
range: %GenLSP.Structures.Range{
125125
start: %GenLSP.Structures.Position{
126126
line: 3,
127-
character: 7
127+
character: 6
128128
},
129129
end: %GenLSP.Structures.Position{
130130
line: 7,
131-
character: 3
131+
character: 2
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)
Please sign in to comment.