copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

How to hide *copilot events* buffer when copilot-log-max is 0 #275

Closed zhenhua-wang closed 3 months ago

zhenhua-wang commented 4 months ago

Currently, emacs would open an empty copilot events buffer when copilot-log-max is 0. I wonder if there is a way to hide it?

emil-vdw commented 3 months ago

This is internal to jsonrpc. You could advise jsonrpc--debug and filter out calls for the copilot connection for instance.

zhenhua-wang commented 3 months ago

Thanks for replying. However, this does not seem to work. I even tried disable jsonrpc--debug completely and the *copilot events* buffer still showed up.

Here is how I disabled jsonrpc--debug.

(fset #'jsonrpc--debug #'ignore)