From bdcc4b11ad7d41b233297f04537863c13a61ba68 Mon Sep 17 00:00:00 2001
From: cschen <camillo.schenone@gmail.com>
Date: Mon, 17 Feb 2025 22:52:30 +0100
Subject: [PATCH] dont' drop the handle

---
 plugin/commands/workspace.py | 1 +
 plugin/core/buffers.py       | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/commands/workspace.py b/plugin/commands/workspace.py
index a13cb3c..9dc8b7f 100644
--- a/plugin/commands/workspace.py
+++ b/plugin/commands/workspace.py
@@ -199,3 +199,4 @@ class CodempDeleteBufferCommand(sublime_plugin.WindowCommand):
         except KeyError: pass
         finally:
             vws.handle.delete_buffer(buffer_id).wait()
+
diff --git a/plugin/core/buffers.py b/plugin/core/buffers.py
index b25735c..fd3db26 100644
--- a/plugin/core/buffers.py
+++ b/plugin/core/buffers.py
@@ -82,7 +82,6 @@ class BufferManager():
         logger.debug(f"dropping buffer {self.id}")
         self.view.close()
         self.handle.clear_callback()
-        self.handle = None
 
     def __hash__(self):
         return hash(self.id)