cyberbiont / vscode-profiles

vscode plugin to easily manage multiple extensions / settings configurations
ISC License
26 stars 2 forks source link

Changing profile in another window does not update taskbar label #13

Open lukas-schaetzle opened 2 years ago

lukas-schaetzle commented 2 years ago

Like described in the readme under limitations, there can't be multiple windows with different active profiles. However, changing the profile in one window does not update the current profile label in the taskbar in the other window (although the profile there is also changed).

cyberbiont commented 2 years ago

This is caused by the fact that we can't detect that one instance was reloaded, from another VS Code instance, because they are independent. https://github.com/microsoft/vscode/issues/111863. The only possible solution would be to verify the symlink on a regular basis, like every 5 seconds, but I'm not sure that it's worth it.

lukas-schaetzle commented 2 years ago

Hm yeah, periodic pulling sounds not so great. Maybe it's somehow possible to react on focus events? So, only execute a verify check when the window is being focused again.

cyberbiont commented 2 years ago

Good idea. Now that I'm thinking of it there may be some way not in VS Code, but in Electron to react to window focus. If you know the exact way to do it, please let me know. PR's are also welcome)