Closed
Description
Recent improvements to VS Code's APIs, specifically the new createTerminal
API, have made it possible for our extension to programmatically launch PowerShell inside of the integrated terminal UI. This will allow the user to directly interact with the PowerShell session in which PSES is running for a complete integrated console experience that works even while debugging a script.
Things to consider
- Might need to work around the issues with passing terminal arguments on Windows by dynamically generating a .bat file: Integrated terminal: Shell args not honored on Windows microsoft/vscode#8429 (comment)
- Is there a setting to never show the debug console since we don't need it anymore?
- PSReadline will need to be disabled initially so that the Runspace will be available for command execution when the user isn't typing commands. @lzybkr and I have discussed a way to make this work while PSReadline is active but it will require some extra intelligence in PowerShell Editor Services, so I might put that off for a release.