Skip to content

Commit

Permalink
chore: explicit exports from pygls.workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and tombh committed Oct 3, 2023
1 parent 2b20f10 commit 571fd1c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pygls/workspace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
from .text_document import TextDocument
from .position_codec import PositionCodec

Workspace = Workspace
TextDocument = TextDocument
PositionCodec = PositionCodec

# For backwards compatibility
Document = TextDocument

Expand Down Expand Up @@ -85,3 +81,17 @@ def range_to_utf16(lines: List[str], range: types.Range):
)
_codec = PositionCodec()
return _codec.range_to_client_units(lines, range)


__all__ = (
"Workspace",
"TextDocument",
"PositionCodec",
"Document",
"utf16_unit_offset",
"utf16_num_units",
"position_from_utf16",
"position_to_utf16",
"range_from_utf16",
"range_to_utf16",
)

0 comments on commit 571fd1c

Please sign in to comment.