Losing the code in scripts when I move the script between folders

I saw this issue flagged by some other users in past and was not able to find a reason or solution to this problem.

I am doing some changes to my project and moving the scripts around different folders and noticed that for few scripts I am losing the entire code. Luckily I can pull the code from master but this might cause a bigger problem in future when current branch will be merged with master.

I would appreciate any tips or advice.

Hey Manpreet @manpreet.mukkar, thank for bringing this up. May I ask you to show the location (from old folder to new folder) you move your scripts around? We did got a ticket that was raised relating to this issue, so I would like to double-check if your issue is similar to that.