I faced this as well on KDE and got around it by creating a window rule to match it by window title and force a .desktop name to the vs code window, so it shows the correct icon on the taskbar. I wonder if there is a similar functionality on Gnome?
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
What do you mean by a "window rule"?
Here's some info on it: https://userbase.kde.org/KWin_Rules
From the overview:
KWin allows the end-user to define rules to alter an application's window attributes.
For example, when an application is started, it can be forced to always run on Virtual Desktop 2. Or a defect in an application can be worked-around to force the window above others.
I don’t use vscode so I can’t help too much beyond saying Distrobox is awesome and I’ve been using it for my headless dev machine for a few months and won’t go back to anything else.
What do you use it for?
I use VSCodium in Distrobox daily on Alpine Linux, and it works flawlessly. I don't experience the problem you encounter but I use KDE Plasma which I suppose handles it differently.
I am however looking into slowly moving over to KDE's Kate for development, my laptop really doesn't like opening multiple chrome instances for the various instances of VSCodium and then also an Android emulator on top of that.
I think part of it is my trying to use VSCode on Wayland... are you launching VSCodium with Wayland?