From 8305694b18334e542c99e68c9ee1906d1d044ddf Mon Sep 17 00:00:00 2001 From: noctuum <25441068+noctuum@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:32:54 +0500 Subject: [PATCH] fix: correct the VSCodium shared storage path VSCodium's shared storage lives in ~/.vscode-oss-shared, not ~/.vscodium-shared. The directory name comes from the `sharedDataFolderName` key in product.json, which is a separate key from `dataFolderName` and is not derived from the product name. VSCodium rebrands `dataFolderName` and `serverDataFolderName` but inherits `sharedDataFolderName` unchanged from Code - OSS. Since ~/.vscodium-shared never exists, resolve() fell through to the legacy path that VSCode 1.118 migrated away from, so the runner returned no matches at all for VSCodium users. --- lib/database.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/database.dart b/lib/database.dart index f4aba48..1e903a5 100644 --- a/lib/database.dart +++ b/lib/database.dart @@ -50,8 +50,16 @@ abstract class DatabaseFilePath { '$_home/.vscode-shared/sharedStorage/state.vscdb'; /// The VSCodium version of VSCode (new shared storage location). + /// + /// The folder name is not derived from the product name; it comes from the + /// `sharedDataFolderName` key in `product.json`, which is independent of + /// `dataFolderName`. VSCodium rebrands `dataFolderName` and + /// `serverDataFolderName` but leaves `sharedDataFolderName` at the + /// Code - OSS default, so its shared storage lives in `.vscode-oss-shared`. + /// + /// https://github.com/microsoft/vscode/blob/849be60ee89e414165969291f77d98e6fcd6e3cf/product.json#L6 static String codiumShared = - '$_home/.vscodium-shared/sharedStorage/state.vscdb'; + '$_home/.vscode-oss-shared/sharedStorage/state.vscdb'; /// Returns the database file path for [version], preferring the new shared /// storage location when it exists and falling back to the legacy path for