|
| 1 | +import sublime |
| 2 | +import sublime_plugin |
| 3 | +from .plugin.code_actions import LspCodeActionsCommand as LspCodeActionsCommand, LspRefactorCommand as LspRefactorCommand, LspSourceActionCommand as LspSourceActionCommand |
| 4 | +from .plugin.code_lens import LspCodeLensCommand as LspCodeLensCommand, LspToggleCodeLensesCommand as LspToggleCodeLensesCommand |
| 5 | +from .plugin.color import LspColorPresentationCommand as LspColorPresentationCommand |
| 6 | +from .plugin.completion import LspCommitCompletionWithOppositeInsertMode as LspCommitCompletionWithOppositeInsertMode, LspResolveDocsCommand as LspResolveDocsCommand, LspSelectCompletionCommand as LspSelectCompletionCommand |
| 7 | +from .plugin.configuration import LspDisableLanguageServerGloballyCommand as LspDisableLanguageServerGloballyCommand, LspDisableLanguageServerInProjectCommand as LspDisableLanguageServerInProjectCommand, LspEnableLanguageServerGloballyCommand as LspEnableLanguageServerGloballyCommand, LspEnableLanguageServerInProjectCommand as LspEnableLanguageServerInProjectCommand |
| 8 | +from .plugin.core.registry import LspNextDiagnosticCommand as LspNextDiagnosticCommand, LspOpenLocationCommand as LspOpenLocationCommand, LspPrevDiagnosticCommand as LspPrevDiagnosticCommand, LspRestartServerCommand as LspRestartServerCommand |
| 9 | +from .plugin.core.signature_help import LspSignatureHelpNavigateCommand as LspSignatureHelpNavigateCommand, LspSignatureHelpShowCommand as LspSignatureHelpShowCommand |
| 10 | +from .plugin.core.tree_view import LspCollapseTreeItemCommand as LspCollapseTreeItemCommand, LspExpandTreeItemCommand as LspExpandTreeItemCommand |
| 11 | +from .plugin.core.views import LspRunTextCommandHelperCommand as LspRunTextCommandHelperCommand |
| 12 | +from .plugin.document_link import LspOpenLinkCommand as LspOpenLinkCommand |
| 13 | +from .plugin.documents import DocumentSyncListener as DocumentSyncListener, TextChangeListener as TextChangeListener |
| 14 | +from .plugin.edit import LspApplyDocumentEditCommand as LspApplyDocumentEditCommand, LspApplyWorkspaceEditCommand as LspApplyWorkspaceEditCommand |
| 15 | +from .plugin.execute_command import LspExecuteCommand as LspExecuteCommand |
| 16 | +from .plugin.folding_range import LspFoldAllCommand as LspFoldAllCommand, LspFoldCommand as LspFoldCommand |
| 17 | +from .plugin.formatting import LspFormatCommand as LspFormatCommand, LspFormatDocumentCommand as LspFormatDocumentCommand, LspFormatDocumentRangeCommand as LspFormatDocumentRangeCommand |
| 18 | +from .plugin.goto import LspSymbolDeclarationCommand as LspSymbolDeclarationCommand, LspSymbolDefinitionCommand as LspSymbolDefinitionCommand, LspSymbolImplementationCommand as LspSymbolImplementationCommand, LspSymbolTypeDefinitionCommand as LspSymbolTypeDefinitionCommand |
| 19 | +from .plugin.goto_diagnostic import LspGotoDiagnosticCommand as LspGotoDiagnosticCommand |
| 20 | +from .plugin.hierarchy import LspCallHierarchyCommand as LspCallHierarchyCommand, LspHierarchyToggleCommand as LspHierarchyToggleCommand, LspTypeHierarchyCommand as LspTypeHierarchyCommand |
| 21 | +from .plugin.hover import LspHoverCommand as LspHoverCommand, LspToggleHoverPopupsCommand as LspToggleHoverPopupsCommand |
| 22 | +from .plugin.inlay_hint import LspInlayHintClickCommand as LspInlayHintClickCommand, LspToggleInlayHintsCommand as LspToggleInlayHintsCommand |
| 23 | +from .plugin.panels import LspClearLogPanelCommand as LspClearLogPanelCommand, LspClearPanelCommand as LspClearPanelCommand, LspShowDiagnosticsPanelCommand as LspShowDiagnosticsPanelCommand, LspToggleLogPanelLinesLimitCommand as LspToggleLogPanelLinesLimitCommand, LspToggleServerPanelCommand as LspToggleServerPanelCommand, LspUpdateLogPanelCommand as LspUpdateLogPanelCommand, LspUpdatePanelCommand as LspUpdatePanelCommand |
| 24 | +from .plugin.references import LspSymbolReferencesCommand as LspSymbolReferencesCommand |
| 25 | +from .plugin.rename import LspHideRenameButtonsCommand as LspHideRenameButtonsCommand, LspSymbolRenameCommand as LspSymbolRenameCommand |
| 26 | +from .plugin.save_command import LspSaveAllCommand as LspSaveAllCommand, LspSaveCommand as LspSaveCommand |
| 27 | +from .plugin.selection_range import LspExpandSelectionCommand as LspExpandSelectionCommand |
| 28 | +from .plugin.semantic_highlighting import LspShowScopeNameCommand as LspShowScopeNameCommand |
| 29 | +from .plugin.symbols import LspDocumentSymbolsCommand as LspDocumentSymbolsCommand, LspSelectionAddCommand as LspSelectionAddCommand, LspSelectionClearCommand as LspSelectionClearCommand, LspSelectionSetCommand as LspSelectionSetCommand, LspWorkspaceSymbolsCommand as LspWorkspaceSymbolsCommand |
| 30 | +from .plugin.tooling import LspCopyToClipboardFromBase64Command as LspCopyToClipboardFromBase64Command, LspDumpBufferCapabilities as LspDumpBufferCapabilities, LspDumpWindowConfigs as LspDumpWindowConfigs, LspOnDoubleClickCommand as LspOnDoubleClickCommand, LspParseVscodePackageJson as LspParseVscodePackageJson, LspTroubleshootServerCommand as LspTroubleshootServerCommand |
| 31 | +from typing import Any |
| 32 | + |
| 33 | +__all__ = ['DocumentSyncListener', 'Listener', 'LspApplyDocumentEditCommand', 'LspApplyWorkspaceEditCommand', 'LspCallHierarchyCommand', 'LspClearLogPanelCommand', 'LspClearPanelCommand', 'LspCodeActionsCommand', 'LspCodeLensCommand', 'LspCollapseTreeItemCommand', 'LspColorPresentationCommand', 'LspCommitCompletionWithOppositeInsertMode', 'LspCopyToClipboardFromBase64Command', 'LspDisableLanguageServerGloballyCommand', 'LspDisableLanguageServerInProjectCommand', 'LspDocumentSymbolsCommand', 'LspDumpBufferCapabilities', 'LspDumpWindowConfigs', 'LspEnableLanguageServerGloballyCommand', 'LspEnableLanguageServerInProjectCommand', 'LspExecuteCommand', 'LspExpandSelectionCommand', 'LspExpandTreeItemCommand', 'LspFoldAllCommand', 'LspFoldCommand', 'LspFormatCommand', 'LspFormatDocumentCommand', 'LspFormatDocumentRangeCommand', 'LspGotoDiagnosticCommand', 'LspHideRenameButtonsCommand', 'LspHierarchyToggleCommand', 'LspHoverCommand', 'LspInlayHintClickCommand', 'LspNextDiagnosticCommand', 'LspOnDoubleClickCommand', 'LspOpenLinkCommand', 'LspOpenLocationCommand', 'LspParseVscodePackageJson', 'LspPrevDiagnosticCommand', 'LspRefactorCommand', 'LspResolveDocsCommand', 'LspRestartServerCommand', 'LspRunTextCommandHelperCommand', 'LspSaveAllCommand', 'LspSaveCommand', 'LspSelectCompletionCommand', 'LspSelectionAddCommand', 'LspSelectionClearCommand', 'LspSelectionSetCommand', 'LspShowDiagnosticsPanelCommand', 'LspShowScopeNameCommand', 'LspSignatureHelpNavigateCommand', 'LspSignatureHelpShowCommand', 'LspSourceActionCommand', 'LspSymbolDeclarationCommand', 'LspSymbolDefinitionCommand', 'LspSymbolImplementationCommand', 'LspSymbolReferencesCommand', 'LspSymbolRenameCommand', 'LspSymbolTypeDefinitionCommand', 'LspToggleCodeLensesCommand', 'LspToggleHoverPopupsCommand', 'LspToggleInlayHintsCommand', 'LspToggleLogPanelLinesLimitCommand', 'LspToggleServerPanelCommand', 'LspTroubleshootServerCommand', 'LspTypeHierarchyCommand', 'LspUpdateLogPanelCommand', 'LspUpdatePanelCommand', 'LspWorkspaceSymbolsCommand', 'TextChangeListener', 'plugin_loaded', 'plugin_unloaded'] |
| 34 | + |
| 35 | +def plugin_loaded() -> None: ... |
| 36 | +def plugin_unloaded() -> None: ... |
| 37 | + |
| 38 | +class Listener(sublime_plugin.EventListener): |
| 39 | + def on_exit(self) -> None: ... |
| 40 | + def on_load_project_async(self, w: sublime.Window) -> None: ... |
| 41 | + def on_post_save_project_async(self, w: sublime.Window) -> None: ... |
| 42 | + def on_new_window_async(self, w: sublime.Window) -> None: ... |
| 43 | + def on_pre_close_window(self, w: sublime.Window) -> None: ... |
| 44 | + def on_pre_move(self, view: sublime.View) -> None: ... |
| 45 | + def on_load(self, view: sublime.View) -> None: ... |
| 46 | + def on_pre_close(self, view: sublime.View) -> None: ... |
| 47 | + def on_post_window_command(self, window: sublime.Window, command_name: str, args: dict[str, Any] | None) -> None: ... |
0 commit comments