workflows/lib/ide_service/idea_service.py
2024-05-09 22:23:49 +08:00

16 lines
393 B
Python

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)