johnpapa / vscode-peacock

Subtly change the color of your Visual Studio Code workspace. Ideal when you have multiple VS Code instances, use VS Live Share, or use VS Code's Remote features, and you want to quickly identify your editor.
MIT License
1.03k stars 115 forks source link

Feature request: Automatically set new random color when new window is open #508

Open castus opened 1 year ago

castus commented 1 year ago

Is your feature request related to a problem? Please describe. Maybe not a problem, but running it every time I open a new window is annoying. I thought, that maybe there was a way to automate this. Is it possible to do this using VSCode API?

Describe the solution you'd like Every time I open a new window, it gets random colors, but not the same as the windows that are already opened.

Describe alternatives you've considered Nope. I want it to be automatic.

Additional context No, I think it's clear.

johnpapa commented 1 year ago

Thank you @castus for creating this issue!

willpower232 commented 1 year ago

Is this what you want?

image

castus commented 1 year ago

I don't know really. It's not working for me or I'm doing something wrong ;) You can see it here - https://drive.google.com/file/d/1Xf9CBGI-q0bpjLzWrDZrncOX2rlW-Rmv/view?usp=sharing I assumed Peacock would color my new window to the random color. Is that correct?

johnpapa commented 1 year ago

The surprise me feature is something you have to select from the command palette. It won't automatically color every new via code instance for you. You have to select surprise me, and it will pick a random color.

Long story short, it's extremely complicated logic that is likely to break a lot of the features that I tried to implement a few times to have it automatically color a window when you opened. So instead, I had it surprise me, which allows you to Sir Lex that menu item And make a conscious choice

castus commented 1 year ago

So, if I'm understanding it correctly, VSCode API doesn't provide a trigger when a new window is open, right?