When two instances of VS Code are open, only the profile of one is shown.
alextpedro opened this issue · comments
Describe the bug
I open a project in vscode with my React profile. The extension correctly says React profile. I duplicate the workspace and set the profile to Java but the extension still says it's React. Vscode correctly uses the Java profile.
To Reproduce
Steps to reproduce the behavior:
- open a project in vscode with a profile
- duplicate the workspace and set another profile as active
- Extensions shows the same profile in both windows
Expected behavior
The extension should show the correct active profile name for both windows.
Platform info (please complete the following information):
Version: 1.87.2
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:14:59.643Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.7.9-1-liquorix-amd64
Hi @alextpedro
Thanks for raising the issue and your interest in the extension.
VS Code does not trigger an event when the profile changes, so there is no way to update the profile status in this way atm.
Currently the profile status is updated when the profile changes because the VS Code instance is reloaded. I have another issue #5 open to explore how to force the update of the profile status for scenarios like this, such as when you create a new empty profile and it does not reload the VS Code instance. Ultimately, any solution will be a bit of a hack until VS Code adds an event for a change of profile.
You are welcome to explore the problem space if you would like to contribute.
I made a feature request for a "profile change" event in the VS Code repo. You can give it a thumbs up if you would like to see this resolved