Skip to content

Commit e77b567

Browse files
committed
Fix off-by-one in vscode's inlay hint decoration range
1 parent 7eb2fae commit e77b567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Editors/vscode/src/inlayHints.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ const hintStyle: InlayHintStyle = {
5353

5454
makeDecoration: (hint, converter) => ({
5555
range: converter.asRange({
56-
start: hint.position,
57-
end: { ...hint.position, character: hint.position.character + 1 } }
58-
),
56+
start: { ...hint.position, character: hint.position.character - 1 },
57+
end: hint.position
58+
}),
5959
renderOptions: {
6060
after: {
6161
// U+200C is a zero-width non-joiner to prevent the editor from

0 commit comments

Comments
 (0)