-
Notifications
You must be signed in to change notification settings - Fork 510
The extension insists on adding the addWhitespaceAroundPipe setting to my workspace settings file #2842
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
Comments
Looks like the test for the deprecated setting isn't specific enough and needs to be modified |
Here's the relevant change: #2830 |
cc @bergmeister |
@rkeithhill Have you got the |
It's not in my user settings. Here are all the user settings I have defined for PowerShell:
|
Same here |
For me its also injecting into my workspace settings, not just user settings. |
Looks like no matter what, vscode-powershell/src/session.ts Line 335 in 68a8e15
|
I've got a fix out for this. |
Sorry, I was quite busy the last days, thanks for fixing it. When I was testing it, the debug instance of VS-Code did not have a workspace open with |
No worries! |
@AArnott you need to have either Powershell or Powershell Preview installed, not both. It should actually be warning you not to do this and to uninstall one every startup. |
Hmm... well I never noticed the warning. Till now. I removed the Preview one and restarted. So far, no settings.json change. :) |
System Details
System Details Output
Issue Description
I've had other extensions do this and it is very annoying because it creates unnecessary Git diffs / files committed. Basically when I open a PS1 file in my repo, this change gets made to the workspace's settings.json file:
Expected Behaviour
The extensions should never automatically modify my workspace's settings.json file.
Actual Behaviour
The settings.json is being modified behind my back.
vscode-powershell.zip
Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: