I have disabled “Automatic Screen Lock” in Settings. But still, when I put the computer to sleep and wake it up, I briefly see the lock screen, and when the lock screen disappears, it seems that extensions are recreated. The problem is that if I have a docked panel created by an extension, and maximised windows often get placed beneath the panel when resuming from sleep.
This problem seems to be a common one. See this Ubuntu bug thread with lots of comments: Bug #1961508 “Dock displaying over window after resuming from bl...” : Bugs : gnome-shell-extension-ubuntu-dock package : Ubuntu
I don’t know whose fault it is or why it happens, but what I think is that all this problem could be avoided if there simply is a way to make Gnome not recreate extensions. But that is currently not possible, is it? Then, why is it so? Why can’t Gnome just keep extensions as they are when sleep/resuming?