16 lines
393 B
Python
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)
|