New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage: workspace identifier changed (URI.toString()) #61504
Comments
Really? We have lost workspace storage and no one complained yet? Surprising... |
The general advise is to never use the string "as-is" but to go via |
Well, windows only and insiders only and its very subtle, visually you just do not see the opened editors anymore. And its "fixed" once you continue to use that state because then you use the new form of the key.
In order to access an entry in local storage I need its full key ( |
Hm, I see... Yeah, we can add an overload to |
@bpasero I have pushed a change that adds another argument to the |
Alternatively (maybe better), this regex can be used: |
I like the regex option better because it's more local. I will revert above commit changes |
@jrieken I am fine using a regex in my case since that code will be thrown away at one point anyway. I feel like we should maybe ping everyone and give some advice given this change has the potential of breaking bad if used in the wrong way. For example I see URIs stored in the old format (as |
Hm, that's what I was afraid of. we can also think about undoing the root case again... |
@jrieken let's discuss in the office |
I have reverted the uri changes that I have done for #58985. |
We are storing all workspace storage for folders with a prefix that is computed from the folder
URI.toString()
. This key has changed on Windows from encoding the colon at the drive letter to no longer encode. Given that, no workspace storage is found anymore.@jrieken please advise what I can do here to get back the old behaviour. Maybe we need some utility function. I would also suggest to do a check of clients of
URI.toString()
to see if anyone is actually persisting this data and making assumptions about it and needs to take steps.PS: the new storage solution will not suffer from this but even next milestone, all UI data will still go into local storage just in case.
The text was updated successfully, but these errors were encountered: