coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.59k stars 5.54k forks source link

Profiles and portability #6922

Closed SonahtQ closed 1 month ago

SonahtQ commented 7 months ago

I am writing to propose an enhancement for code-server. I've noticed that user profiles in code-server are saved in the browser's localStorage. This approach limits the profiles accessibility across different devices.

Given that code-server is essentially a server-based implementation of VSCode, it would be immensely beneficial to have profiles stored on the server side. This change would allow users to retain their profiles regardless of the device or browser they are using to access code-server.

To elaborate, when a user configures a profile and adjusts settings in settings.json on one device, these changes are not reflected when the same user accesses code-server from a different machine, because each device currently has his own, separated profile list.

Thank you for considering this request. I am looking forward to any updates regarding this potential enhancement.

Best regards,

matifali commented 7 months ago

It looks like a good enhancement if it's possible to store these on the workspace instead of the browser.

It's probably an issue for coder/code-server though.

code-asher commented 1 month ago

Duplicate of https://github.com/coder/code-server/issues/4212.

I agree with the idea, and I remember trying to patch VS Code to store state in the remote but ran into some issues. I will go ahead and close this as a duplicate and re-open the other. I do not think we have plans to work on this but a PR is welcome. Possibly implementation could be done as an extension, which would be even better (fewer patches to maintain).