Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
WorkDoneProgressOptions, WorkDoneProgressParams)
class SelectionRangeClientCapabilities:
def __init__(self, dynamic_registration: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
class SelectionRangeOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class SelectionRangeRegistrationOptions(SelectionRangeOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
SelectionRangeOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class SelectionRangeParams(WorkDoneProgressParams, PartialResultParams):
def __init__(self, query: str,
text_document: TextDocumentIdentifier,
positions: List[Position],
work_done_progress: Optional[ProgressToken] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_progress)
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
DocumentColorOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class ImplementationClientCapabilities:
def __init__(self,
dynamic_registration: Optional[bool] = False,
link_support: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
self.linkSupport = link_support
class ImplementationOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class ImplementationRegistrationOptions(ImplementationOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
ImplementationOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class ImplementationParams(TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
dynamic_registration: Optional[bool] = False,
range_limit: Optional[NumType] = None,
line_folding_only: Optional[bool] = False,):
self.dynamicRegistration = dynamic_registration
self.rangeLimit = range_limit
self.lineFoldingOnly = line_folding_only
class FoldingRangeOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class FoldingRangeRegistrationOptions(FoldingRangeOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
FoldingRangeOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class FoldingRangeParams(WorkDoneProgressParams, PartialResultParams):
def __init__(self, query: str,
text_document: TextDocumentIdentifier,
work_done_progress: Optional[ProgressToken] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_progress)
PartialResultParams.__init__(self, partial_result_token)
class DeclarationClientCapabilities:
def __init__(self,
dynamic_registration: Optional[bool] = False,
link_support: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
self.linkSupport = link_support
class DeclarationOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class DeclarationRegistrationOptions(DeclarationOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
DeclarationOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class DeclarationParams(TextDocumentPositionParams, WorkDoneProgressParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
work_done_token: Optional[bool] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)