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

plugin adds machine specific settings to settings.json #21

Open
rajsite opened this issue Jun 30, 2021 · 2 comments
Open

plugin adds machine specific settings to settings.json #21

rajsite opened this issue Jun 30, 2021 · 2 comments

Comments

@rajsite
Copy link

rajsite commented Jun 30, 2021

We would like to have a .vscode/settings.json checked into the repo for a workspace to share between developers. An issue is that the Adobe XD extension appears to insert absolute paths into .vscode/settings.json instead of workspace relative paths:

{
    "xd.globalEditor": true,
    "xd.lastPackage": "/Users/<user>/Documents/GitRepositories/<path-to-package-in-repo>"
} 

Instead of a workspace relative path, ie:

{
    "xd.globalEditor": true,
    "xd.lastPackage": "<path-to-package-in-repo>"
} 
@jattasNI
Copy link

Agreed, the docs for VS Code settings indicate that vscode/settings.json can be used for sharing settings between users and the VS Code team uses that approach, so writing user-specific content to that location doesn't seem quite right.

@kintz09
Copy link

kintz09 commented Mar 28, 2023

I ran into this problem today as well. Our workspace settings are saved in the .vscode/settings.json file therefore we commit it to git.

I tried rewriting the path as a relative path, which other settings are using, but the XD extension didn't find the package so I'm assuming a relative path is not supported. I also tried removing the entry from workspace settings and moved it into user settings, but every time I open the XD extension it adds it back into the workspace settings?

Does anyone know a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants