How can I disable the automatic code preview/expansion when adding files to the chat window?

When adding files to the chat window, it automatically shows a preview/expansion of the code. Since I can already see the code in the file editor tab itself, this preview feels redundant and takes up space in the chat.

Is there a way to disable this automatic preview feature? I’d prefer to just have the files attached without showing their contents in the chat window.