koalamer / vsc-workspace-in-status-bar

Extension for VSCode that displays the workspace name in the status bar
MIT License
7 stars 2 forks source link

Icon/background color #7

Open bilogic opened 1 year ago

bilogic commented 1 year ago

Hi,

Just what I was looking for! Thank you.

  1. I don't suppose the background color can be changed?
  2. I had another idea previously which was to have a configurable icon in the sidebar (per workspace) for a quick glance to know which workspace we are in, do you know if this is even possible?
koalamer commented 10 months ago

Hello,

  1. I have a faint memory of the background not being adjustable, but it was a long time ago.
  2. In the latest release you can override the label text entirely. Just place the right setting in the workspace settings json (see the readme). That means, you are free to use VSCode icons and also unicode emojis in the label text, which should be enough to make the label more visually distinct between workspaces.
Splact commented 2 months ago

I see from vscode api that StatusBarItem has support for a custom background color. I'll try to propose a PR for that 😉

bilogic commented 2 months ago

@Splact thanks! are you a vscode contributor? we could use some help here :) https://github.com/microsoft/vscode/pull/207721

Splact commented 2 months ago

Oh no, I mean proposing a PR for this extension 🙂

Splact commented 2 months ago

Unfortunately I was wrong, is it possible to set the background, but only statusBarItem.errorBackground and statusBarItem.warningBackground are supported. I tried to set a custom one, but it doesn't work out.