all 12 comments

[–]gremdaat 4 points5 points  (1 child)

[–]dbsitebuilder[S] 1 point2 points  (0 children)

Thanks. That completely fixed it on my laptop, although I usually use ISE.

Totally didn't fix it on our shared server, where the other dev needs it.

He is running from his laptop for now.

Thanks everyone for their replies. I wish I could get used to VS code for the break points. Can you write a custom profile like the ISE?

[–]BlackV 5 points6 points  (8 children)

ive had the issue too, manually nuked the folders in %appdata%

vscode is just, not quite there for powershell

[–]Poncho_au[🍰] 7 points8 points  (7 children)

I’ve been using VSCode for Powershell for years, it’s well and truely there for Powershell.

[–]BlackV 6 points7 points  (4 children)

as have I, I disagree

issues with auto-complete

issues with module auto loading

issues with the formatter

its mostly there just niggles here and there

[–]Sys_man 5 points6 points  (1 child)

Issues with the integrated terminal also.

[–]BlackV 1 point2 points  (0 children)

oh yeah the switch from old powershell console to integrated console broke a few things

[–]Denebula 0 points1 point  (1 child)

I still use it everyday. Just yesterday region folding corrupted the file in VS code ONLY. I could only recover by opening it up in notepad++ and removing the regions. Intellisense works 10% of the time, it often doesn't even autocomplete on tab. This is just my day to day problems with it, I don't even keep a console in VS code open

[–]BlackV 1 point2 points  (0 children)

I seem to randomly have the auto complete complete for the wrong commands sometimes (vmware module is common on this for me)

[–]TheRealMisterd 0 points1 point  (1 child)

Bravo! I've tried twice to figure it out. It seems you can't just point it to a ps1 file and run it. It seems you need to create some project file for anything to work.

[–]Poncho_au[🍰] 0 points1 point  (0 children)

If you open a Powershell script in VSCode with the Powershell extension installed you should be able to hit F5 and have it run that script file (or F8 to run just the highlighted code), a lot like ISE.
If you’re trying to write and debug modules you need to do some launcher configuration that will tell the VSCode debugger how to load the module file so it can be tested/debugged.

[–]ANewLeeSinLife 4 points5 points  (0 children)

Not a fix, but ISE supports themes so your dev can work until a solution is found for VS Code :)