Skip to content

Commit cc10a17

Browse files
committed
clear self.std* to avoid writing to empty pipes
This ensures that behavior between a newly opened nvim and one in which tabnine-chat has been opened and then closed are identical
1 parent 6c8d293 commit cc10a17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/tabnine/chat/binary.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ function ChatBinary:close()
2424
uv.kill(self.pid, "sigterm")
2525
self.handle = nil
2626
self.pid = nil
27+
self.stdin = nil
28+
self.stdout = nil
29+
self.stderr = nil
2730
end
2831
end
2932

0 commit comments

Comments
 (0)