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

Settings Profile (.code-profile) file should be user readable #148829

Closed
alefragnani opened this issue May 5, 2022 · 6 comments
Closed

Settings Profile (.code-profile) file should be user readable #148829

alefragnani opened this issue May 5, 2022 · 6 comments
Assignees
Labels
*extension-candidate Issue identified as good extension implementation *out-of-scope Posted issue is not in scope of VS Code user-profiles User profile management

Comments

@alefragnani
Copy link

Just tried the Settings Profile feature, which BTW seems really promising, and noticed the .code-profile file is not user readable. I mean ok, it's a JSON file, but it has no spacings/tabs or new lines. It's a single line JSON.

I think you could follow the .code-workspace format, which works just fine for reading and manual editing, when necessary.

Thanks in advance

@alefragnani alefragnani changed the title Settings Profile file should be user readable Settings Profile (.code-profile) file should be user readable May 5, 2022
@rzhao271 rzhao271 assigned sandy081 and unassigned rzhao271 May 5, 2022
@Tanimodori
Copy link

The .code-profile file seems to have issue with escaping. e.g.

{"settings":"{\"settings\":\"{\\r\\n  \\\"workbench.colorTheme\\\": \\\"Default Dark+\\\",\\r\\n  \\\"editor.fontFamily\\\": \\\"'Sarasa Fixed SC', Consolas, 'Courier New', monospace\\\",\\r\\n  \\\"latex-workshop.latex.tools\\\": [\\r\\n    {\\r\\n      \\\"name\\\": \\\"xelatex\\\",\\r\\n      \\\"command\\\": \\\"xelatex\\\",\\r\\n 
...(ommited)...

@sandy081
Copy link
Member

This is not expected to be human readable - May I know the need ?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label May 12, 2022
@alefragnani
Copy link
Author

Just like the .code-workspace file, being human readable I'm able to edit it when necessary.

Let's say I need:

  • Tweak some setting (for any reason)
  • Duplicate a profile, using a different set of extensions for each one

I totally understand some of its data shouldn't be edited, like the globalState, but user settings, keybindings and extensions makes sense to be editable.

@Tanimodori
Copy link

The .code-profile is basically a JSON file after all. It contains a lot of \r and \n which seems buggy with char escaping. Please just fix the escape problem to make it human readable.

@sandy081
Copy link
Member

This seems to be a good candidate for an extension to view all resources in the .code-profile file and ability to edit and save it.

@sandy081 sandy081 added *extension-candidate Issue identified as good extension implementation and removed info-needed Issue requires more information from poster labels May 19, 2022
@vscodenpa
Copy link

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

Happy Coding!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2022
@sandy081 sandy081 added the user-profiles User profile management label Dec 2, 2022
@sandy081 sandy081 added the *out-of-scope Posted issue is not in scope of VS Code label Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation *out-of-scope Posted issue is not in scope of VS Code user-profiles User profile management
Projects
None yet
Development

No branches or pull requests

5 participants