Vscode-powershell: No indication that PowerShell code is running

Created on 21 Apr 2016  路  10Comments  路  Source: PowerShell/vscode-powershell

VSCode Version: 1.0.1-insiders
OS: Windows 10 RTM 1511

  • Ran some PowerShell code (F8)
  • Closed the Output window
  • Ran more PowerShell code (F8)
  • Had no indication it was running / VSCode GUI was static
  • Finally thought to open Output window and check
  • Changed Output window from "Tasks" to "PowerShell Output"
  • Found output

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

Area-Integrated Console Hackathon Issue-Enhancement

Most helpful comment

@tylerl0706 Awesome!

All 10 comments

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:
Execution status update in PowerShell extension

Fixed in #1227 馃帀

Now you'll see a little spinner as well as some text 馃槃

all thanks to @rjmholt 馃帀

@tylerl0706 Awesome!

Was this page helpful?
0 / 5 - 0 ratings