src/eric7/JediInterface/JediServer.py

branch
eric7
changeset 10243
6a3b0acda958
parent 10069
435cc5875135
child 10272
7ae72d1df070
child 10439
21c28b0f9e41
--- a/src/eric7/JediInterface/JediServer.py	Thu Oct 12 17:23:13 2023 +0200
+++ b/src/eric7/JediInterface/JediServer.py	Fri Oct 13 08:30:15 2023 +0200
@@ -985,3 +985,16 @@
         self.sendJson("closeProject", {}, idString=JediServer.IdProject)
 
         self.stopClient(idString=JediServer.IdProject)
+
+    def forgetEditor(self, editor):
+        """
+        Public method to forget about the given editor.
+
+        @param editor reference to the editor to forget about
+        @type Editor
+        """
+        for uid in self.__editors:
+            if self.__editors[uid] is editor:
+                with contextlib.suppress(KeyError):
+                    del self.__editors[uid]
+                break

eric ide

mercurial