Skip to content

Comments

Allow storing storage on disk#769

Merged
CGNonofr merged 7 commits intomainfrom
lmn/allow-storing-storage-on-disk
Feb 19, 2026
Merged

Allow storing storage on disk#769
CGNonofr merged 7 commits intomainfrom
lmn/allow-storing-storage-on-disk

Conversation

@CGNonofr
Copy link
Contributor

@CGNonofr CGNonofr commented Feb 18, 2026

This PR adds 3 different features, which goal is to be able to store workspace-related data (editor layout, chat history...) outside of the default client IndexedDB database

Allow overriding environment uris

It allows to override the workspaceStorageHome in particular. The default value vscode-userdata:///User/workspaceStorage can be replaced by anything else, like file:///some-random-visible-directory to make it accessible in the filesystem, or using any scheme after adding your custom FileSystemProvider on it

Improvements of the storage service override

It now allows to properly register a StorageDatabase factory for each of the storage scope (application, profile, workspace)
The default IndexedDB database can then be replaced by a custom implementation, or with the provided JsonFileStorageDatabase which allows to write the data as a json file at the given uri

allow defining the workspace id

By default, the workspace id is generated by hashing the workspace uri. The workspace id is then used as a key for everything related to storage of workspace data.

This feature allows to force the workspace id regardless of the workspace uri

@CGNonofr CGNonofr requested a review from onora-hbl February 18, 2026 16:52
Copy link
Contributor

@onora-hbl onora-hbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, thanks for that!

@CGNonofr CGNonofr merged commit 0fd1a6a into main Feb 19, 2026
2 checks passed
@CGNonofr CGNonofr deleted the lmn/allow-storing-storage-on-disk branch February 19, 2026 09:06
@github-actions
Copy link

🎉 This PR is included in version 26.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants