The code editor is configured to show items in ~/catkin_ws and similar ROS workspaces.
The reason is that if there’s any resource you want to edit or add, it should be in your ROS workspace, by convention (this should be the practice even if you are working on your local PC). More so that we only save your ROS workspace - anything outside it will be lost.