-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Extension workspaceStorage folder is missing metaData file #41408
Comments
@dbaeumer it would help if you could point me to the place where this metadata file is created. I assume it would be close to |
@bpasero pointed me to that commit: cabd8ad#diff-c61682f360a18cf690ac59fe3f625db7 @jrieken any reason why you removed creating the file ? |
Sorry, must have been an oversight when doing the sync to async fix. What is the file being used for and what should it contain? I can then bring it back. |
The file contained the path to the workspace or workspace file plus the workspace uud. Format was JSON with |
@dbaeumer I have pushed c677bf3 to restore the |
@jrieken the purpose of the information is to be able to clean old workspace storage information with user interaction and to let users know which storage folders take how much space (both not implemented). So we need to either now the workspace folder or the workspace meta data file location (the .code) file. To my knowledge each multi root workspace gets its own workspace storage location. If a folder in 'mounted' into two multi root workspaces there workspace storage is not shared. @bpasero this is correct? |
Yeah, but you can move that file around and I am not sure what happens then to the workspace... @bpasero will the id stay stable or not? |
@dbaeumer I have pushed a change to also store the workspace name, tho not the path as that information is not available. So, it will look like this
We could also add the folders of that workspace but that information might change over time... |
@jrieken @bpasero not having the location on disk will it make very hard for a user to decide if the workspace storage is still needed. We can't even check if the workspace is still available since we don't know where to look. So to implement a user acceptable workspace clean story we would need the location on disk. @bpasero do you store that anywhere and I could then use the ID to get the revers mapping? |
@dbaeumer we have a list of recently opened folders and workspaces, but that one is bounded to 100, so it may not include all entries. And this list can get stale when the workspace was moved. I suggest to just store the location of the workspace file as meta data and then this could be presented to the user to ask if the storage is still needed. There is a |
That makes sense to me. So in case of a folder workspace we store the folder location and in case of a workspace with n folder we store the location of the .code file. @jrieken can you add this |
check |
I have tried to expose the |
@jrieken isn't this just about making configuration optional in |
The file now contains
which is IMO not enough information to find the folder on disk. Do I miss something? |
Each folder had in the past a meta data file which now seems to be missing.
@bpasero any idea/reason why that got removed. Did it get moved somewhere else?
Not having that file anymore makes it very hard to clean up even with user interaction the workspaceFolder storage.
The text was updated successfully, but these errors were encountered: