Replies: 6 comments
-
cc @BillyONeal |
Beta Was this translation helpful? Give feedback.
-
I think, but am not certain, that a removal command is intentionally not provided for powershell because that |
Beta Was this translation helpful? Give feedback.
-
Thank you - I've forgot that the integration had been added through the integrate powershell command. However, would you maybe accept a pull request for cleaning the file? As the posh-vcpkg would not be used/usable by other applications anymore and it's very specific I'd propose that the config is cleared of the Install-Module of the posh-vcpkg and if then only empty files are left in the file, it will get deleted. |
Beta Was this translation helpful? Give feedback.
-
There is the potential concern that that file is arbitrary code etc. so it won't be perfect and this isn't in source control so if we do it wrong things are bad. I think we'll need some kind of validation that there's nothing "interesting" going on in the file but given that we would like such a PR I'd assume. |
Beta Was this translation helpful? Give feedback.
-
One more thing: We would love to have an if exists check when |
Beta Was this translation helpful? Give feedback.
-
We could also generate comment blocks or similar around the inserted region so that we could cleanly remove it too |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Removing the vcpkg integration does not remove the posh-vcpkg reference of the PowerShell Profile, throwing an error if - as highlighted in the documentation for uninstallation - the folder of vcpkg should be removed.
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Integration is removed from the system and no left-overs from the configuration lead to errors while starting the PowerShell console when the folder is removed
Failure logs
Beta Was this translation helpful? Give feedback.
All reactions