-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin as sidecar initialization fails when browser is refreshed #3970
Comments
/cc @benoitf @evidolob |
It seems there is no quick fix regarding the root of the issue. if (this.commands.has(command.id)) {
throw new Error(`Command ${command.id} already exist`);
} ====> if (this.commands.has(command.id)) {
this.commands.delete(command.id);
this.proxy.$unregisterCommand(command.id);
console.warn(`Command ${command.id} already exist and is overridden.`);
} Another solution is to postpone until we have a clear vision. |
AFAIK plug-in is being stopped on refresh as well so cleanup of commands should be done at that time (so when it starts again it's not there) |
Make sense, I will check |
This is more for the IDE2 team. @evidolob Not a clue what the right approach is here. |
There's the same issue with the Kubernetes Tooling Plugin. |
should be fixed now with latest fix #4583 |
@benoitf I've tested it with the K8s Plugin. Works well. Thank you! |
Plugin (run as side car) initialization fails when browser is refreshed.
How to reproduce
The text was updated successfully, but these errors were encountered: