diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:18:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:18:22 +0000 |
commit | 590e10ceccc9835d3d28d7857b544fcfe1f13183 (patch) | |
tree | 87ad585203bcf185e77de28d9399eddbcfe628cb /tests/lsp_tests/lsp_tutil.py | |
parent | Adding debian version 0.1.27.1. (diff) | |
download | debputy-590e10ceccc9835d3d28d7857b544fcfe1f13183.tar.xz debputy-590e10ceccc9835d3d28d7857b544fcfe1f13183.zip |
Merging upstream version 0.1.28.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/lsp_tests/lsp_tutil.py')
-rw-r--r-- | tests/lsp_tests/lsp_tutil.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lsp_tests/lsp_tutil.py b/tests/lsp_tests/lsp_tutil.py index 2873f72..0843f79 100644 --- a/tests/lsp_tests/lsp_tutil.py +++ b/tests/lsp_tests/lsp_tutil.py @@ -1,4 +1,4 @@ -from typing import Tuple +from typing import Tuple, Union try: from pygls.server import LanguageServer @@ -6,6 +6,7 @@ try: TextDocumentItem, Position, ) + from debputy.lsp.debputy_ls import DebputyLanguageServer except ImportError: pass @@ -26,7 +27,7 @@ def _locate_cursor(text: str) -> Tuple[str, "Position"]: def put_doc_with_cursor( - ls: "LanguageServer", + ls: Union["LanguageServer", "DebputyLanguageServer"], uri: str, language_id: str, content: str, |