Open
Description
Code snippets output by copilot in the sidebar chat are now editors, so they support hats. That is very cool, but the problem is that they seem to still take hats even if the sidebar is minimized, and we don't make any effort to prioritize the actually visible regular editors, so we waste hats on these snippets you can't actually see
We only show hats on visible editors, so this almost feels like a VSCode bug where it's reporting these code snippets as "visible editors" even if chat sidebar is hidden. We should prob search for relevant github issues on vscode repo before we dig further