Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TextDocumentIdentifier, TextDocumentRegistrationOptions,
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):
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):
class TypeDefinitionClientCapabilities:
def __init__(self,
dynamic_registration: Optional[bool] = False,
link_support: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
self.linkSupport = link_support
class TypeDefinitionOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class TypeDefinitionRegistrationOptions(TypeDefinitionOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
TypeDefinitionOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class TypeDefinitionParams(TextDocumentPositionParams, WorkDoneProgressParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
work_done_token: Optional[bool] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
def __init__(self,
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)
WorkDoneProgressParams
)
class DocumentColorClientCapabilities:
def __init__(self, dynamic_registration: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
class DocumentColorOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class DocumentColorRegistrationOptions(DocumentColorOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
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 DocumentColorParams(WorkDoneProgressParams, PartialResultParams):
def __init__(self,
text_document: TextDocumentIdentifier,
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_token)