Skip to content

Commit

Permalink
🐛 Fix wrong range
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 5, 2023
1 parent 278997c commit ebdf3a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tree_sitter_lsp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ def get_diagnostic(
:type kwargs: Any
:rtype: Diagnostic
"""
_range = self.get_range()
_range.end.character -= 1
return Diagnostic(
_range,
self.get_range(),
Template(message).render(uni=self, **kwargs),
severity,
)
Expand Down

0 comments on commit ebdf3a6

Please sign in to comment.