Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage VSCode user settings at the team/project level (No access to ~/.config/Code/User/settings.json) #5931

Open
konne opened this issue Sep 29, 2021 · 9 comments
Labels
editor: code (browser) editor: code (desktop) feature: settings sync feature: settings sync meta: never-stale This issue can never become stale type: feature request New feature or request

Comments

@konne
Copy link

konne commented Sep 29, 2021

Bug description

The normal path to access user settings for vscode is not available in gitpod.

I also searched in the root dir with find -name for settings.json, but no file is filled with the user settings.

Use case:
We have already .vscode/settings.json in our repo so that it is used for all local developers with vscode.
We have to add settings that are only available for the gitpod context. If we change the file in the .vscode
folder in the init / command block, git see that change and want to push it back to the main repo that is
not wished, because it should not affect the local developer.

Steps to reproduce

see description

Expected behavior

No response

Example repository

No response

Anything else?

No response

@akosyakov akosyakov added editor: code (browser) type: question reporter has a general question labels Oct 4, 2021
@akosyakov
Copy link
Member

User settings are stored in browser cache for the given workspace, not on the disk. They are auto synched between workspaces.

@konne
Copy link
Author

konne commented Oct 4, 2021

@akosyakov thanks for the answer. But this does not solve my issue to handle settings that should be only applied to users of the repo in gitpod and not in the local vscode users.

I have two feature ideas to solve that issue:

  1. introduce another level of settings file that is only applied to the gitpod vscode system. Like you do with the install in the yaml file
  2. Can you then introduce a possibility to set or get these settings via gp cmd tool?
    So that we can for example already set default user settings for a new user

@akosyakov akosyakov added type: feature request New feature or request and removed type: question reporter has a general question labels Oct 4, 2021
@stale
Copy link

stale bot commented Jan 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Jan 2, 2022
@stale stale bot closed this as completed Jan 12, 2022
@schickling
Copy link

Still an issue 🙈

@axonasif axonasif reopened this Jan 30, 2022
@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Jan 30, 2022
@loujaybee loujaybee added the meta: never-stale This issue can never become stale label Feb 21, 2022
@loujaybee loujaybee changed the title ~/.config/Code/User/settings.json no access to User settings Manage VSCode user settings at the team/project level (No access to ~/.config/Code/User/settings.json) Feb 21, 2022
@loujaybee
Copy link
Member

Thanks for raising @konne, we can look into ways to make user settings more configurable on a team / project level.

We'll also update the documentation to make it clearer how the settings sync currently works and how to override 🙏

Related: https://github.com/gitpod-io/website/issues/1276

Removing from inbox.

@akosyakov
Copy link
Member

We don't control VS Code settings. I am not aware that VS Code allow to configure on team/project level without either mixing them into each user settings or into project settings. The clean and primary way to share settings across the team is to commit them to git. @jeanp413 do you know other ways?

@konne
Copy link
Author

konne commented Feb 25, 2022

I understand that you save the VSCode user settings in the browser cache and I know that VS Code only has the concept of user & workspace settings.
So maybe it could be the possibility that you first start the gitpod browser with empty settings that you can have "start" settings out of the project.

@akosyakov
Copy link
Member

I understand that you save the VSCode user settings in the browser cache and I know that VS Code only has the concept of user & workspace settings.

Not, we are, it is VS Code, we don't change anything there.

@jeanp413
Copy link
Member

jeanp413 commented Feb 25, 2022

@konne can you try modifying /workspace/.vscode-remote/data/Machine/settings.json (you can also open the settings ui and select the remote tab) and see if that works for your use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor: code (browser) editor: code (desktop) feature: settings sync feature: settings sync meta: never-stale This issue can never become stale type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants