Fixed an issue in JediServer processing completion results from the client. eric7

Thu, 13 Jan 2022 19:40:00 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 13 Jan 2022 19:40:00 +0100
branch
eric7
changeset 8920
fe16c3cf165d
parent 8919
5d7a0bb95482
child 8921
8459c7e1b904

Fixed an issue in JediServer processing completion results from the client.

eric7/JediInterface/JediServer.py file | annotate | diff | comparison | revisions
--- a/eric7/JediInterface/JediServer.py	Tue Jan 11 19:56:15 2022 +0100
+++ b/eric7/JediInterface/JediServer.py	Thu Jan 13 19:40:00 2022 +0100
@@ -211,9 +211,9 @@
         for completion in result["Completions"]:
             name = completion['Name']
             context = completion['FullName']
-            if context.endswith(".{0}".format(name)):
-                context = context.rsplit(".", 1)[0]
             if context:
+                if context.endswith(".{0}".format(name)):
+                    context = context.rsplit(".", 1)[0]
                 name = "{0} ({1})".format(name, context)
             
             name += JediServer.PictureIDs.get(completion['CompletionType'], '')

eric ide

mercurial