It just sort of happened, don't know why. The editor just won't update GM.
[Edit] Turns out GMS isn't removing anything, it just doesn't show the code I've written in GMEdit and when I edit something in that script and save it it removes everything written in GMEdit.