mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter: LSP: Return TextEdit as JSON
This commit is contained in:
parent
19d0410ea0
commit
13b66e2875
2 changed files with 7 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue