Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.tagSupport = tag_support
class CompletionOptions(WorkDoneProgressOptions):
def __init__(self,
trigger_characters: Optional[List[str]] = None,
all_commit_characters: Optional[List[str]] = None,
resolve_provider: Optional[bool] = False,
work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
self.triggerCharacters = trigger_characters
self.allCommitCharacters = all_commit_characters
self.resolveProvider = resolve_provider
class CompletionParams(TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
context: Optional['CompletionContext'] = None,
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
self.context = context
class CompletionTriggerKind(enum.IntEnum):
Invoked = 1
TriggerCharacter = 2
TriggerForIncompleteCompletions = 3
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)
self.textDocument = text_document
class FoldingRangeKind(str, enum.Enum):
Comment = 'comment'
Imports = 'imports'
Region = 'region'
class FoldingRange:
class CodeLensClientCapabilities:
def __init__(self, dynamic_registration: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
class CodeLensOptions(WorkDoneProgressOptions):
def __init__(self,
resolve_provider: Optional[bool] = False,
work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
self.resolveProvider = resolve_provider
class CodeLensParams(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)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document
class CodeLens:
def __init__(self,
range: Range,
command: Optional[Command] = None,
data: Optional[Any] = None):
self.range = range
self.command = command
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)
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
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)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document
self.positions = positions
class SelectionRange:
def __init__(self, range: Range, parent: Optional['SelectionRange'] = None):
self.range = range
self.parent = parent
self.dynamicRegistration = dynamic_registration,
self.symbolKind = symbol_kind
self.hierarchicalDocumentSymbolSupport = hierarchical_document_symbol_support
class WorkspaceCapabilitiesSymbolKind:
def __init__(self, value_set: Optional[List['SymbolKind']] = None):
self.valueSet = value_set
class DocumentSymbolOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class DocumentSymbolParams(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)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document
class SymbolKind(enum.IntEnum):
File = 1
Module = 2
Namespace = 3
Package = 4
Class = 5
Method = 6
class CodeActionLiteralSupportActionKindClientCapabilities:
def __init__(self, value_set: Optional[List[SymbolKind]] = None):
self.valueSet = value_set
class CodeActionOptions(WorkDoneProgressOptions):
def __init__(self,
code_action_kinds: Optional[List['CodeActionKind']] = None,
work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
self.codeActionKinds = code_action_kinds
class CodeActionParams(WorkDoneProgressParams, PartialResultParams):
def __init__(self,
text_document: TextDocumentIdentifier,
range: Range,
context: 'CodeActionContext',
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document
self.range = range
self.context = context
class CodeActionKind(str, enum.Enum):
Empty = ''
QuickFix = 'quickfix'