Skip to content

Commit

Permalink
Ensure version is never None
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Jan 23, 2023
1 parent f397836 commit 28c8ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt_lsp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def did_open(
uri=params.text_document.uri,
language_id=SLS_LANGUAGE_ID,
text=params.text_document.text or "",
version=doc.version,
version=doc.version or 0,
)

@server.feature(TEXT_DOCUMENT_DOCUMENT_SYMBOL)
Expand Down

0 comments on commit 28c8ebf

Please sign in to comment.