How to use the pygls.types.common.WorkDoneProgressOptions function in pygls

To help you get started, we’ve selected a few pygls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
more_trigger_character: Optional[List[str]] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)
        self.firstTriggerCharacter = first_trigger_character
        self.moreTriggerCharacter = more_trigger_character


class RenameOptions(WorkDoneProgressOptions):
    def __init__(self,
                 prepare_provider: Optional[bool] = False,
                 work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)
        self.prepareProvider = prepare_provider


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[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        FoldingRangeOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
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 HoverOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class SignatureHelpOptions(WorkDoneProgressOptions):
    def __init__(self,
                 trigger_characters: Optional[List[str]] = None,
                 retrigger_characters: Optional[List[str]] = None,
                 work_done_progress: Optional[ProgressToken] = None
                 ):
        super().__init__(work_done_progress)
        self.triggerCharacters = trigger_characters
        self.retriggerCharacters = retrigger_characters


class DeclarationOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class DeclarationRegistrationOptions(DeclarationOptions,
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class SignatureHelpOptions(WorkDoneProgressOptions):
    def __init__(self,
                 trigger_characters: Optional[List[str]] = None,
                 retrigger_characters: Optional[List[str]] = None,
                 work_done_progress: Optional[ProgressToken] = None
                 ):
        super().__init__(work_done_progress)
        self.triggerCharacters = trigger_characters
        self.retriggerCharacters = retrigger_characters


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[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        DeclarationOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
StaticRegistrationOptions):
    def __init__(self,
                 id: Optional[str] = None,
                 document_selector: Optional[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        DeclarationOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)


class DefinitionOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


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[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        TypeDefinitionOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
class DocumentSymbolOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


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 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 DocumentLinkOptions(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 DocumentColorOptions(WorkDoneProgressOptions):
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
class DocumentRangeFormattingOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class DocumentOnTypeFormattingOptions(WorkDoneProgressOptions):
    def __init__(self,
                 first_trigger_character: str,
                 more_trigger_character: Optional[List[str]] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)
        self.firstTriggerCharacter = first_trigger_character
        self.moreTriggerCharacter = more_trigger_character


class RenameOptions(WorkDoneProgressOptions):
    def __init__(self,
                 prepare_provider: Optional[bool] = False,
                 work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)
        self.prepareProvider = prepare_provider


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,
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
super().__init__(work_done_progress)


class FoldingRangeRegistrationOptions(FoldingRangeOptions,
                                      TextDocumentRegistrationOptions,
                                      StaticRegistrationOptions):
    def __init__(self,
                 id: Optional[str] = None,
                 document_selector: Optional[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        FoldingRangeOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)


class ExecuteCommandOptions(WorkDoneProgressOptions):
    def __init__(self,
                 commands: List[str],
                 work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)
        self.commands = commands


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,
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
self.save = save


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 HoverOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class SignatureHelpOptions(WorkDoneProgressOptions):
    def __init__(self,
                 trigger_characters: Optional[List[str]] = None,
                 retrigger_characters: Optional[List[str]] = None,
                 work_done_progress: Optional[ProgressToken] = None
                 ):
        super().__init__(work_done_progress)
        self.triggerCharacters = trigger_characters
        self.retriggerCharacters = retrigger_characters


class DeclarationOptions(WorkDoneProgressOptions):
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
ImplementationOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)


class ReferenceOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class DocumentHighlightOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


class DocumentSymbolOptions(WorkDoneProgressOptions):
    def __init__(self, work_done_progress: Optional[ProgressToken] = None):
        super().__init__(work_done_progress)


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 CodeLensOptions(WorkDoneProgressOptions):
    def __init__(self,
                 resolve_provider: Optional[bool] = False,
                 work_done_progress: Optional[ProgressToken] = None):
github openlawlibrary / pygls / pygls / types / server_capabilities.py View on Github external
super().__init__(work_done_progress)


class TypeDefinitionRegistrationOptions(TypeDefinitionOptions,
                                        TextDocumentRegistrationOptions,
                                        StaticRegistrationOptions):
    def __init__(self,
                 id: Optional[str] = None,
                 document_selector: Optional[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        TypeDefinitionOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)


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[DocumentSelectorType] = None,
                 work_done_progress: Optional[ProgressToken] = None):
        ImplementationOptions.__init__(self, work_done_progress)
        TextDocumentRegistrationOptions.__init__(self, document_selector)
        StaticRegistrationOptions.__init__(self, id)