actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Duplicate Buttons #25

Closed zifik closed 3 years ago

zifik commented 3 years ago

This extension is not properly clearing existing tasks buttons during load.

When doing remote development, there are situations where VSCode loses connection and asks to "reload window". When this occurs, the task buttons are duplicated. If the window reloads again, then there are 3x the number of task buttons.

Version: v0.7.0 VSCode: 1.50.1

actboy168 commented 3 years ago

Every refresh will clear all statusbar first. There should be no duplicate statusbar unless VSCode does not release the statusbar correctly.

zifik commented 3 years ago

Then perhaps the fault lies with the remote development extension and how it reconnects/reloads.

joao-p-marques commented 3 years ago

This is also happening to me. I am not using remote development, but from time to time some buttons are duplicated, and I have to reload the VSCode window to revert back to the correct settings.

actboy168 commented 3 years ago

I did not find the error, but I added an optimization. Now the extension will reuse the created statusbar. This may solve part of the problem.

viperet commented 3 years ago

Extension: Tasks Unfortunately, it still happens to me, and it's very annoying.

It's a local workspace, just opened it and got many duplicated buttons. "Developer: Reload Window" not solved this issue, but closing and reopening the workspace solved it.

sandym commented 3 years ago

I see that almost everyday, not using remote development. Editing and re-saving the tasks.json reset the status bar. This is my only grief with this very useful extension.

sandym commented 3 years ago

I've create a pull request with something that seems to fix the problem. Haven't seen duplicates on the 2 machines I deployed that change.