The extension does not work with WSL
OS: Window 10
This extension does not work with Remote - WSL extension. Running any command returns an error:
[exthost] [error] Error: SQLITE_CANTOPEN: unable to open database file vscode-extension-profiles.Create {"value":"evald24.vscode-extension-profiles","_lower":"evald24.vscode-extension-profiles"}
After reading your source code, I realized the problem is here: https://github.com/evald24/vscode-extensions-profiles/blob/b415251dd0c3145ff382548c0da9f455fb8e6ca7/src/storage.ts#L11-L15 https://github.com/evald24/vscode-extensions-profiles/blob/b415251dd0c3145ff382548c0da9f455fb8e6ca7/src/utils.ts#L56-L61 https://github.com/evald24/vscode-extensions-profiles/blob/b415251dd0c3145ff382548c0da9f455fb8e6ca7/src/utils.ts#L15-L25
When using WSL, the process.platform is linux, but the VS Code path is ${process.env.APPDATA}\\Code, resulting in the state.vscdb file does not exist.
I found this package, it can help you check if you are in WSL or not.
I suggest you to use vscode.ExtensionContext.globalState, storagePath or globalStoragePath instead of the current approach. I read it here.
I have no experience in creating VS code extensions so I can only give you the information I find 😁.
English is not my native language, so the sentences will be confusing, sorry for that 😁.
@8NAF Thank you for issue, I will think about it tomorrow)
@8NAF Hi! Minor update 1.1.0 was released, which added support for multilingual extensions.
In order for the extension to display normally, you need to delete and re-add it.
Please give feedback =)
@evald24 Hi, the extension is still not working, I got a new error:
[error] Error: SQLITE_ERROR: no such table: ItemTable vscode-extension-profiles.Create {"value":"evald24.vscode-extension-profiles","_lower":"evald24.vscode-extension-profiles"}
I just encountered the exact same issue. Running the extension from the WSL filesystem does not work.