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

Aura Components extension is overwriting .vscode/settings.json #1210

Closed
aheber opened this issue Mar 29, 2019 · 4 comments
Closed

Aura Components extension is overwriting .vscode/settings.json #1210

aheber opened this issue Mar 29, 2019 · 4 comments
Labels

Comments

@aheber
Copy link
Contributor

aheber commented Mar 29, 2019

Summary

It seems that since yesterday's update the Aura Components plugin is overwriting the [[projectroot]]/.vscode/settings.json file with the following:

{
    "html.suggest.angular1": false,
    "html.suggest.ionic": false,
}

Maybe limited to my project only, I don't know.

Steps To Reproduce:

  1. Have a basic settings.json file already configured:
{
    "npm.enableScriptExplorer": true
}
  1. With the Aura Components plugin installed, reload the vscode window
    settings.json is rewritten to:
{
    "html.suggest.angular1": false,
    "html.suggest.ionic": false
}

Expected result

It is OK to add things to the settings.json, I should not however lose existing setting values.

Actual result

All of my existing project settings are lost and replaced. This file is tracked in source control so I was able to recover it but it is still being overwritten every time I restart.

Additional information

Feel free to attach a screenshot.

VS Code Version:
1.32.3 (user setup)
SFDX CLI Version:
@oclif/plugin-commands 1.2.2 (core)
@oclif/plugin-help 2.1.6 (core)
@oclif/plugin-not-found 1.2.2 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.2 (core)
analytics 1.1.2 (core)
generator 1.1.0 (core)
salesforcedx 45.8.1 (core)
├─ force-language-services 45.9.0 (core)
└─ salesforce-alm 45.10.0 (core)

sfdx-cli 7.1.3 (core)

OS and version:
Windows 10

@ntotten
Copy link
Contributor

ntotten commented Apr 5, 2019

Fix has been checked in and will go out next week.

@ntotten ntotten closed this as completed Apr 5, 2019
@AndrewRayCode
Copy link

It looks like you've overwritten my local vscode settings in every single project I've worked on. These files aren't version controlled obviously because they're local to me and the project and shouldn't be shared.

How do I get these files back? I had a lot of per-project settings that are now lost.

I've reported this extension so hopefully it gets taken down ASAP

@ntotten
Copy link
Contributor

ntotten commented Apr 9, 2019

@AndrewRayCode I apologize for the problem this has caused. This was a bug and a mistake on our part. We have updated the extension and the fix will go out in a few days.

As far as restoring the file, I am not really sure. Without knowing what OS you are on or your system set up its hard to recommend an option. If you have backup software you may be able to use that. I'm happy to troubleshoot or offer more suggestions if you can give me some details about your setup.

@ntotten
Copy link
Contributor

ntotten commented Apr 10, 2019

We published a prioritized release today that fixes this issue. Update to version 45.10.0. I apologize for any issues this caused. We are doing a retro to try to ensure this sort of issue doesn't happen again.

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

Successfully merging a pull request may close this issue.

3 participants