Hi Amanpreet,
As conveyed in our previous update, the mentioned case is our default behavior and it's not an issue. Actually, we have provided option to determine the table in design mode while moving to code view and generate the initial query in code view with the table name in design mode but you can change your table name in code view based on your needs hence we don’t support to determine the table name in code view while switching to design view. Due to this reason only we ask for confirmation "Switching to the visual designer will discard manual changes made to the query. Do you want to use the Visual Designer anyway?". Based on your replication you have clicked ‘Yes’ hence you cannot find the table in design mode which was used in code view.
But in some cases you would have found table residing in design mode although switched from code mode, this case will arise when you have dragged any table in design mode before switching to code mode. This will be persisted until you click ‘Finish’ button only. Also you can find, we would have persisted the table you dragged and dropped in design mode lastly and not the table used in code view. Please find the video showcasing this case for better understanding.
In your case, you have saved the Dataset in code view and editing the same hence the design mode state would not been saved initially based on mode you have chosen while saving. Now, you are trying to switch to design mode for edited Dataset hence you are finding empty area without any table.
Please let us know, if you still need clarification on this.
Regards,
Mageshyadav.M