Closed igorakkerman closed 1 year ago
Hello, Could you share the whole command You were using.
Hi, thanks for your reply. Sure, the command was simply:
Set-FTA -ProgId "VSCode.ps1" -Extension ".ps1"
That's a really niche case. I will not mark it as an issue. I'll close the issue. But It's great you posted here. It will help someone for sure.
This might be a very niche case, but it actually happened to me.
I tried to register VSCode for Powershell files (.ps1) and kept getting ProgId
SFTA.VSCode.ps1
asUserChoice
, instead ofVSCode.ps1
. After some investigation in the code, I realized that this happened because, ironically, my script was namedvscode.ps1
. PS-SFTA checked for the existence of a file of that name and thus prependedSFTA.
.I don't know whether this should be fixed or not but it took me some time to figure out the strange behavior. In the end, it's quite funny, I must admit.