VSCode Version: 1.0.1-insiders
OS: Windows 10 RTM 1511
Is there an opportunity here to improve the user experience? Perhaps not a priority, but it would be nice to know that "something is happening" when you use the "PowerShell: Run Selection" command in VSCode.
Cheers,
Trevor Sullivan
https://trevorsullivan.net
https://twitter.com/pcgeek86
That's a great point. Maybe we can change the status bar text while the script is running to indicate that something is happening?
@daviwil yep, something like that would be cool.
+1 for this. I really, really miss this functionality!
I think this is the only thing missing to make Powershell ISE obsolete for my part.
As far as I can see, there is no real indication that code is running, even with the Powershell Output window up (other than any output that is to be written to shell is missing).
Good point! I'll do something about this soon.
@tylerl0706 This minor enhancement could be an easy win for the VSCode-PowerShell development experience.
Thanks for that @pcgeek86! This looks relatively trivial.
The easiest way to do this would probably be to create ExecutionStartedEvent and ExecutionEndedEvent notifications for PowerShellEditorServices to send to the editor. One way to send the events would be to have the LanguageService attach to the ExecutionStatusChanged event on PowerShellContext.
I have a working implementation for this (just a text-in-status-bar update): client and server.
I'll add some tests and open PRs for each component.
I'm fairly new to the PowerShell extension client/server codebase and to VS Code's API, so looking for any feedback on my implementation (particularly suspect is this bit).
EDIT - a preview:

Fixed in #1227 馃帀
Now you'll see a little spinner as well as some text 馃槃
all thanks to @rjmholt 馃帀
@tylerl0706 Awesome!
Most helpful comment
@tylerl0706 Awesome!