mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add a formatter
This commit is contained in:
parent
2faa9207de
commit
4fa64cdf33
12 changed files with 613 additions and 11 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue