RandomFractals / vscode-snippets-viewer

Snippets viewer for VSCode
https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.snippets-viewer
GNU General Public License v3.0
9 stars 1 forks source link

Add user snippets loading for remote CodeSpaces and gitpod.io workspaces #59

Closed RandomFractals closed 3 years ago

RandomFractals commented 3 years ago

a continuation of #58 to actually make them load for those in-browser workspaces:

@akosyakov tips from vscode dev community slack:

In Web context, user data (settings, keybindings, ui layout, extensions manifest, snippets) stored in indexed db of your browser and synchronised via https://code.visualstudio.com/docs/editor/settings-sync

code reference: https://github.com/microsoft/vscode/blob/de3aca7a53172e414ce1207a5cc3efad8655192d/src/vs/workbench/browser/web.main.ts#L265-L272

Have you tried to use vscode.workspace.fs.readFile with user data scheme?

RandomFractals commented 3 years ago

Closing this as I don't plan to support global user snippets loading in gitpod workspaces or beta CodeSpaces for now, unless I get some dev requests or @LostInTangent wants to see them in code spaces.