@@ -147,7 +147,7 @@ def __init__(self, parent: RobotLanguageServerProtocol) -> None:
147
147
@language_id ("robotframework" )
148
148
@_logger .call
149
149
async def namespace_invalidated (self , sender : Any , namespace : Namespace ) -> None :
150
- await self .parent .semantic_tokens .workspace_refresh ()
150
+ await self .parent .semantic_tokens .refresh ()
151
151
152
152
@classmethod
153
153
def generate_mapping (cls ) -> Dict [str , Tuple [Enum , Optional [Set [Enum ]]]]:
@@ -702,7 +702,7 @@ async def generate_keyword_tokens(
702
702
yield token , node
703
703
704
704
@_logger .call
705
- async def collect (
705
+ async def _collect_internal (
706
706
self ,
707
707
model : ast .AST ,
708
708
range : Optional [Range ],
@@ -818,7 +818,7 @@ async def get_tokens() -> AsyncGenerator[Tuple[Token, ast.AST], None]:
818
818
return SemanticTokens (data = data )
819
819
820
820
@_logger .call
821
- async def collect_threading (
821
+ async def _collect (
822
822
self , document : TextDocument , range : Optional [Range ]
823
823
) -> Union [SemanticTokens , SemanticTokensPartialResult , None ]:
824
824
@@ -836,7 +836,7 @@ async def collect_threading(
836
836
None ,
837
837
)
838
838
839
- return await self .collect (
839
+ return await self ._collect_internal (
840
840
model ,
841
841
range ,
842
842
namespace ,
@@ -850,14 +850,14 @@ async def collect_threading(
850
850
async def collect_full (
851
851
self , sender : Any , document : TextDocument , ** kwargs : Any
852
852
) -> Union [SemanticTokens , SemanticTokensPartialResult , None ]:
853
- return await self .collect_threading (document , None )
853
+ return await self ._collect (document , None )
854
854
855
855
@language_id ("robotframework" )
856
856
@_logger .call
857
857
async def collect_range (
858
858
self , sender : Any , document : TextDocument , range : Range , ** kwargs : Any
859
859
) -> Union [SemanticTokens , SemanticTokensPartialResult , None ]:
860
- return await self .collect_threading (document , range )
860
+ return await self ._collect (document , range )
861
861
862
862
@language_id ("robotframework" )
863
863
@_logger .call
0 commit comments