eric6/Debugger/DebuggerInterfacePython.py

branch
multi_processing
changeset 7408
0d58e708f57b
parent 7407
a0b6acee2c20
child 7409
1413bfe73d41
diff -r a0b6acee2c20 -r 0d58e708f57b eric6/Debugger/DebuggerInterfacePython.py
--- a/eric6/Debugger/DebuggerInterfacePython.py	Mon Feb 10 18:49:49 2020 +0100
+++ b/eric6/Debugger/DebuggerInterfacePython.py	Mon Feb 10 19:49:45 2020 +0100
@@ -1133,17 +1133,19 @@
         """
         self.__sendJsonCommand("RequestCapabilities", {}, debuggerId)
     
-    def remoteCompletion(self, text):
+    def remoteCompletion(self, debuggerId, text):
         """
         Public slot to get the a list of possible commandline completions
         from the remote client.
         
+        @param debuggerId ID of the debugger backend
+        @type str
         @param text the text to be completed
         @type str
         """
         self.__sendJsonCommand("RequestCompletion", {
             "text": text,
-        })
+        }, debuggerId)
     
     def remoteUTDiscover(self, syspath, workdir, discoveryStart):
         """
@@ -1467,10 +1469,8 @@
                 params["debuggerId"])
         
         elif method == "ResponseCompletion":
-            if params["debuggerId"] == self.__master:
-                # signal only for the master connection
-                self.debugServer.signalClientCompletionList(
-                    params["completions"], params["text"])
+            self.debugServer.signalClientCompletionList(
+                params["completions"], params["text"], params["debuggerId"])
         
         ###################################################################
         ## Unit test related stuff is not done with multi processing

eric ide

mercurial