Formatter: LSP: Return TextEdit as JSON

This commit is contained in:
gregorni 2023-09-07 21:59:20 +02:00
parent 19d0410ea0
commit 13b66e2875
2 changed files with 7 additions and 2 deletions

View file

@ -192,3 +192,6 @@ class LocationLink:
class TextEdit:
range: Range
newText: str
def to_json(self):
return {"range": self.range.to_json(), "newText": self.newText}