A member of the Microsoft PowerShell team did a (short) Lightning Demo on stage at the PowerShell Summit on Monday, controlling a lamp and collecting reads from a temperature sensor using a Raspberry Pi. Cool stuff
That was just in the keybindings. I saw something online that said delete all keybindings and let the powershell extension take over. I tried that with no results. So I restored the keybindings.json
I just tried uninstalling and reinstalling vscode and the extensions., no luck.
I figured it out yesterday afternoon, i'm just an idiot.
It's an old habit that I name my files .txt while they're in testing, so I know it's something I'm working on. ISE lets me still F8 these and run sections to test. It's an old habit that has carried over from just pushing out .bat and .cmd files in notepad and saving them as .txt first. Then downloading .ps1 files off the internet and saving them as .txt first so I dont accidentally run them.
VScode does not treat the .txt files the same.
I switched over to an old script and it ran just fine. Then I realized the intellisense colors and formatting were all there, then i realized it's the file format of .ps1 vs .txt
9
u/frumpa_awesome Apr 14 '18
A member of the Microsoft PowerShell team did a (short) Lightning Demo on stage at the PowerShell Summit on Monday, controlling a lamp and collecting reads from a temperature sensor using a Raspberry Pi. Cool stuff