Initial wiring of client calls and responses
This commit is contained in:
@@ -7,6 +7,7 @@ import os
|
||||
# Application imports
|
||||
from libs.debugging import debug_signal_handler
|
||||
from libs.ipc_server import IPCServer
|
||||
from libs.lsp_endpoint_server import LSPEndpointServer
|
||||
from core.window import Window
|
||||
|
||||
|
||||
@@ -24,6 +25,7 @@ class Application:
|
||||
|
||||
if not settings_manager.is_trace_debug():
|
||||
self.load_ipc(args, unknownargs)
|
||||
self.load_lsp_server()
|
||||
|
||||
self.setup_debug_hook()
|
||||
Window(args, unknownargs).main()
|
||||
@@ -41,6 +43,13 @@ class Application:
|
||||
|
||||
raise AppLaunchException(f"{APP_NAME} IPC Server Exists: Have sent path(s) to it and closing...")
|
||||
|
||||
def load_lsp_server(self):
|
||||
lsp_server = LSPEndpointServer()
|
||||
self.ipc_realization_check(lsp_server)
|
||||
|
||||
if not lsp_server.is_ipc_alive:
|
||||
raise AppLaunchException(f"{APP_NAME} IPC Server Already Exists...")
|
||||
|
||||
def ipc_realization_check(self, ipc_server):
|
||||
try:
|
||||
ipc_server.create_ipc_listener()
|
||||
|
||||
Reference in New Issue
Block a user