src/eric7/RemoteServerInterface/EricServerInterface.py

branch
server
changeset 10774
7f7ff7456904
parent 10771
69dfb1339451
child 10775
fd8b7692c03d
--- a/src/eric7/RemoteServerInterface/EricServerInterface.py	Tue Jun 11 16:37:33 2024 +0200
+++ b/src/eric7/RemoteServerInterface/EricServerInterface.py	Tue Jun 11 16:42:56 2024 +0200
@@ -46,6 +46,8 @@
         of a remote server debugger request
     @signal remoteEchoReply(request:str, params:dict) emitted to deliver the reply of
         a remote server echo request
+    @signal remoteEditorConfig(request:str, params:dict) emitted to deliver the reply
+        of a remote server  editor config request
     @signal remoteFileSystemReply(request:str, params:dict) emitted to deliver the
         reply of a remote server file system request
     @signal remoteProjectReply(request:str, params:dict) emitted to deliver the reply
@@ -64,6 +66,7 @@
     remoteCoverageReply = pyqtSignal(str, dict)
     remoteDebuggerReply = pyqtSignal(str, dict)
     remoteEchoReply = pyqtSignal(str, dict)
+    remoteEditorConfig = pyqtSignal(str, dict)
     remoteFileSystemReply = pyqtSignal(str, dict)
     remoteProjectReply = pyqtSignal(str, dict)
     remoteServerReply = pyqtSignal(str, dict)
@@ -83,6 +86,7 @@
             EricRequestCategory.Coverage: self.remoteCoverageReply,
             EricRequestCategory.Debugger: self.remoteDebuggerReply,
             EricRequestCategory.Echo: self.remoteEchoReply,
+            EricRequestCategory.EditorConfig: self.remoteEditorConfig,
             EricRequestCategory.FileSystem: self.remoteFileSystemReply,
             EricRequestCategory.Project: self.remoteProjectReply,
             EricRequestCategory.Server: self.remoteServerReply,
@@ -113,7 +117,7 @@
         try:
             return self.__serviceInterfaces[lname]
         except KeyError:
-            if lname not in ("coverage", "debugger", "filesystem"):
+            if lname not in ("coverage", "debugger", "editorconfig", "filesystem"):
                 raise ValueError(f"no such service supported ({name})")
             else:
                 # instantiate the service interface
@@ -137,6 +141,14 @@
                     )
 
                     self.__serviceInterfaces[lname] = EricServerCoverageInterface(self)
+                elif lname == "editorconfig":
+                    from .EricServerEditorConfigInterface import (  # noqa: I101
+                        EricServerEditorConfigInterface
+                    )
+
+                    self.__serviceInterfaces[lname] = EricServerEditorConfigInterface(
+                        self
+                    )
 
             return self.__serviceInterfaces[lname]
 
@@ -620,7 +632,6 @@
         menu.aboutToShow.connect(self.__showEricServerMenu)
         menu.addAction(self.connectServerAct)
         menu.addMenu(self.__serverProfilesMenu)
-        # TODO: add a 'Recent Connections' submenu
         menu.addSeparator()
         menu.addAction(self.disconnectServerAct)
         menu.addSeparator()

eric ide

mercurial