BasicPawn icon indicating copy to clipboard operation
BasicPawn copied to clipboard

"Save all" opens superfluous "Reload Tab" windows

Open dragokas opened this issue 4 years ago • 2 comments

save

Reproducing:

I have main sp file with:

#include <left4dragokas>
#include <sr/vector.sp>
#include <sr/debug.sp>
#include <sr/stock.sp>
#include <sr/config.sp>
#include <sr/weapon.sp>
#include <sr/convar.sp>
#include <sr/effects.sp>
#include <sr/core.sp>

I asked BasicPawn to open all dependencies => RMB => "Open source files" I pressed Ctrl + Shift + S. BasicPawn asked me whether I want to reload tab "stock.sp", however, nothing is changed.

Next time when I press Ctrl + Shift + S, he is asking me again.

dragokas avatar Dec 20 '20 10:12 dragokas

Thats because stock.sp is opened twice. BasicPawn uses time stamps on files to check whenever a file has changed. It saves tabs from right to left. Because the left stock.sp is saved last, the right sock.sp becomes "outdated" and asks you to reload. Probably going to add a "Always reload tab" option to it.

Timocop avatar Dec 20 '20 19:12 Timocop

Ahh, thanks. Got it. That was a tab I accidentally opened with "Peek definition" option.

dragokas avatar Dec 20 '20 19:12 dragokas