workflows/lib/ide_service/idea_service.py

16 lines
393 B
Python
Raw Permalink Normal View History

2024-05-09 21:30:09 +08:00
from .rpc import rpc_method
from .types import LocationWithText
class IdeaIDEService:
def __init__(self):
self._result = None
@rpc_method
def get_visible_range(self) -> LocationWithText:
return LocationWithText.parse_obj(self._result)
@rpc_method
def get_selected_range(self) -> LocationWithText:
return LocationWithText.parse_obj(self._result)