Skip to content

Commit

Permalink
Use version 0 for not opened files on rename
Browse files Browse the repository at this point in the history
  • Loading branch information
muffinmad committed Jan 28, 2022
1 parent 9896657 commit f90f4c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NEWS

## 1.16

- Use version 0 for not opened files on rename

## 1.15

- Fix one more typo causing Jedi errors not appear in diagnostics
Expand Down
2 changes: 1 addition & 1 deletion anakinls/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def _get_document_changes(
result.append(types.TextDocumentEdit(
text_document=types.VersionedTextDocumentIdentifier(
uri=uri,
version=ls.workspace.get_document(uri).version
version=ls.workspace.get_document(uri).version or 0
),
edits=text_edits
))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='anakin-language-server',
version='1.15',
version='1.16',
author='Andrii Kolomoiets',
author_email='[email protected]',
description='Yet another Jedi Python language server',
Expand Down

0 comments on commit f90f4c6

Please sign in to comment.