Short description of issue
All preferences, history etc being wiped in code editor
Reproduction steps
Absolutely no idea - seems to be random!
Additional info
I keep losing all my settings, preferences, configuration etc etc in this bloody vscode editor. Will just happen randomly when I load it up for a theme I have been working in daily and poof - everything’s gone and it is reset back to the attached.
This is getting SERIOUSLY frustrating now. I don’t have my files open in the tabs from when I was last working. I don’t have my coding preferences set - or even my language set. I can’t see the save/revision history for any files in the theme now. There have been no changes to my browser and no cache/cookies or anything cleared. Yet this keeps happening making it pretty unusable (like why load it with vscode and then make it impossible to utilise the features in it).
Is there a known bug or issue with regards to this? Or are we supposed to just put up with this happening (meaning we actually still have to handle our development elsewhere anyway - which I can’t in this particular project frustratingly).
What type of topic is this
Troubleshooting
Upload screenshot(s) of issue
2 Likes
I have just checked multiple themes in the same store AND various other Shopify stores in the same browser (Brave) and they have ALL reset to the beginning. So this points to either my browser or Shopify. I then checked my work’s store themes (which is in a different browser - Edge) and this issue has not happened.
Please can someone suggest how the hell I prevent this happening. It is actually looking more like this might be caused by a Brave setting like it probably clears data when I shut it down or something (I will check this later) but even so, there must be a way to retain all of my preferences etc in here regardless of cache or something being cleared - if this even is what has caused it?
And my Brave browser hasn’t deleted any browser data and is not set to on exit neither so that actually isn’t the cause however it does seem to be browser specific…
Reverting to old versions is a nightmare in this editor. I have no idea who was the genious who thought forcing users to load this 10mb piece of editor would be a good idea.
1 Like
A good suggestion! We’ve had some discussions in the past about whether we should try storing any of the preferences on our own backend instead of relying on the browser’s local storage. It’s not something we’ll be looking into in the short term but I’ll make sure to create an issue to capture the idea.
In the mean time I’m not sure what Brave might be doing here. Brave is an overly protective browser (and rightfully so!) so I’m not sure how much we’ll be able to leverage with just local storage.
For what it’s worth we haven’t seen this issue reported in any other browser.
1 Like
Hey David! Is there a particular part of this flow you find difficult to use?
I have also experienced this issue in Edge before as well.
I cannot confirm for certain but I think it might happen after there has been a browser update. However all local cache and cookies etc within the browser seems intact so I’ve got absolutely no idea how to prevent this from happening again.
-
Editor takes 10 seconds+ to load, I thought I was exagerating about the “10MB” bit but is actually more than 3x that, yet the CLI has the courage to warn us about keeping javascript files below 10KB everytime we upload a new extension:
-
(OPINION BASED) It is based on VScode which is the one of the worst editors in the market.
-
If you save a new version there’s no clear indicator that the file was saved, it shows on this tiny place on the left, that is sometimes covered depending on what you’re doing.
-
If you click on an old version, the panel will be split, if you click on restore, it will create a new version, then you have no idea what you’re seeing or what version is live, because the editor is already ultra slow, so you have no idea what is happening. I’m on a macbook pro M3:
-
copying and pasting don’t work correctly, even if you have small chunks of text.
I imagine average users who don’t code professionally probably feel 10x more confused
2 Likes
Appreciate the feedback!
then you have no idea what you’re seeing or what version is live, because the editor is already ultra slow, so you have no idea what is happening
If you’re willing to record a video about the slowness of restoring a file we’d appreciate it. We haven’t seen that in our testing but there might be something else going on.
If you save a new version there’s no clear indicator that the file was saved, it shows on this tiny place
As you mentioned this is just out-of-the-box VS Code so some of the paradigms might not be familiar to you. Unsaved files will have a •, no need to view the sidebar.
copying and pasting don’t work correctly, even if you have small chunks of text
This definitely shouldn’t be happening. Do you have an examples you could share?