Add a formatter

This commit is contained in:
Gregor Niehl 2023-11-03 06:48:28 -05:00 committed by James Westman
parent 2faa9207de
commit 4fa64cdf33
12 changed files with 613 additions and 11 deletions

View file

@ -186,3 +186,12 @@ class LocationLink:
"targetRange": self.target_range.to_json(),
"targetSelectionRange": self.target_selection_range.to_json(),
}
@dataclass
class TextEdit:
range: Range
newText: str
def to_json(self):
return {"range": self.range.to_json(), "newText": self.newText}