Description
System Details
- Operating system name and version: Windows 10 v1607 Build 14939.1066
- VS Code version: 1.11.2
- PowerShell extension version: 0.12.2
- Output from
$PSVersionTable
:
PSVersion 5.1.14393.1066
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1066
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
The ability to run a script in an external console from within vsCode would be awesome.
This feature was present in PowerGUI, but broke with the release of Win10 v1607 - and I don't have a machine pre-1607 around, so I can't demonstrate the feature in its entirety...but what I can show follows.
There were two ways to execute a script, and a way to pass a parameter to both methods:
1. Running in integrated terminal
This did just want vsCode does, but it offered an extra feature that I'll mention in No. 3.
2. Running in external console
I can't demonstrate this one (afore mentioned reasons), but this is what I would love to see. This saved a temporary copy of the script, then launched PowerShell externally with the path to the temporary script as the -File parameter. This helped eliminate any "ISE-style" weirdness, and showed me exactly how the end-user's experience would be - which was awesome.
3. You could pass an argument list to both methods via an input box in editor.