Skip to content

Commit 7670612

Browse files
authored
Check change has range
vim-lsp does not currently send range
1 parent 6844f16 commit 7670612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwl_language_server/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def didChange(params): # DidChangeTextDocumentParams -> None
9292
wholetxt = CONTENTS[uri]['text']
9393
for ch in changes:
9494
txt = ch['text']
95-
if ch['range'] is None:
95+
if not 'range' in ch or ch['range'] is None:
9696
CONTENTS[uri] = {
9797
'text': TextContent(txt),
9898
'version': 0,

0 commit comments

Comments
 (0)