Ive been rattled out of my mind for the past few days. What started the issue was a random kernel panic that rest all my dock settings. initially i thought it would be due fixed on restart, however no preferences are saved at all.
Steps i have tried
I ran Killall Dock but it just resets it to default. Tried to locate com.apple.Dock.plist and delete it but initially there was no file which is strange. So i copied the sc from the apple website and recreated the file and placed it in ./library/application support/dock Still no solution
another thing to note was that my VsCode was giving me a write error to the same folder which i fixed by deleting the old code folder
Specs: MBA 2015 on High Sierra