Skip to content

Commit 2b35c95

Browse files
committed
fix: publishDiagnostics starts at 0 and newlines are counted correctly
1 parent 25cdfab commit 2b35c95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylsp/python_lsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def _lint_text_document(self, doc_uri, workspace, is_saved):
394394
flatten(self._hook('pylsp_lint', doc_uri, is_saved=is_saved))
395395
)
396396

397-
def _lint_notebook_document(self, notebook_document, workspace):
397+
def _lint_notebook_document(self, notebook_document, workspace): # pylint: disable=too-many-locals
398398
"""
399399
Lint a notebook document.
400400

test/test_notebook_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pylsp.python_lsp import PythonLSPServer
1111
from pylsp.lsp import NotebookCellKind
1212

13-
CALL_TIMEOUT_IN_SECONDS = 10
13+
CALL_TIMEOUT_IN_SECONDS = 30
1414

1515

1616
def wait_for_condition(condition, timeout=CALL_TIMEOUT_IN_SECONDS):

0 commit comments

Comments
 (0)