diff --git a/blueprintcompiler/lsp.py b/blueprintcompiler/lsp.py index 26a519e..f579ab4 100644 --- a/blueprintcompiler/lsp.py +++ b/blueprintcompiler/lsp.py @@ -51,6 +51,9 @@ class OpenFile: def apply_changes(self, changes): for change in changes: + if "range" not in change: + self.text = change["text"] + continue start = utils.pos_to_idx( change["range"]["start"]["line"], change["range"]["start"]["character"],