8000 document_object.version · Dylmay/python-lsp-server@e582f81 · GitHub
[go: up one dir, main page]

Skip to content

Commit e582f81

Browse files
authored
document_object.version
1 parent 9076a6b commit e582f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/python_lsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def lint(self, doc_uri, is_saved):
442442
workspace = self._match_uri_to_workspace(doc_uri)
443443
document_object = workspace.documents.get(doc_uri, None)
444444
if isinstance(document_object, Document):
445-
self._lint_text_document(doc_uri, workspace, is_saved, doc_version)
445+
self._lint_text_document(doc_uri, workspace, is_saved, document_object.version)
446446
elif isinstance(document_object, Notebook):
447447
self._lint_notebook_document(document_object, workspace)
448448

0 commit comments

Comments
 (0)
0