Extending response type

This commit is contained in:
itdominator 2024-09-30 18:40:23 -05:00
parent 73437ce5e9
commit e3774ee5f3
2 changed files with 15 additions and 2 deletions

View File

@ -9,7 +9,7 @@ from gi.repository import GLib
from gi.repository import GtkSource from gi.repository import GtkSource
# Application imports # Application imports
from libs.dto.lsp_message_structs import LSPResponseTypes, LSPResponseRequest, LSPResponseNotification from libs.dto.lsp_message_structs import LSPResponseTypes, LSPResponseRequest, LSPResponseNotification, LSPIDResponseNotification
from .key_input_controller import KeyInputController from .key_input_controller import KeyInputController
from .editor_events import EditorEventsMixin from .editor_events import EditorEventsMixin
from ...completion_item import CompletionItem from ...completion_item import CompletionItem

View File

@ -36,6 +36,19 @@ class LSPResponseNotification(object):
method: str method: str
params: dict params: dict
@dataclass
class LSPIDResponseNotification(object):
"""
Constructs a new LSP Response Notification instance.
class LSPResponseTypes(LSPResponseRequest, LSPResponseNotification): :param str method: The type of lsp notification being made.
:params dict result: The arguments of the given method.
"""
jsonrpc: str
id: int
method: str
params: dict
class LSPResponseTypes(LSPResponseRequest, LSPResponseNotification, LSPIDResponseNotification):
... ...