{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/311","repository_url":"https://api.github.com/repos/PowerShell/vscode-powershell","labels_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/311/comments","events_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/311/events","html_url":"https://github.com/PowerShell/vscode-powershell/issues/311","id":181272234,"number":311,"title":"Feedback needed: Try out a preview of integrated console support!","user":{"login":"daviwil","id":79405,"avatar_url":"https://avatars.githubusercontent.com/u/79405?v=3","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/labels/discussion","name":"discussion","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2016-10-05T21:35:52Z","updated_at":"2016-10-09T21:13:45Z","closed_at":null,"body":"I've been working hard over the last few weeks to bring a fully integrated PowerShell console to VS Code via the PowerShell extension.  The work isn't finished yet but I wanted to share a preview release to get some initial feedback which will help guide the final steps to getting this released in 0.8.0 in late October.\r\n\r\nThe most interesting thing about this feature is that it uses the standard PowerShell console host to provide the interactive console experience.  This is an improvement over what you get in the ISE because you're writing and testing your code in the standard PowerShell host rather than one developed specifically for the editor.\r\n\r\nI've only tested this on Windows 10 with PowerShell v5 and v6 and on Windows 7 with PowerShell v3.  Would certainly appreciate to hear whether it works on Windows 8 with PowerShell v4 as well (plus any other combination of Windows/PowerShell versions).\r\n\r\n**NOTE:** This only works on Windows right now because I need to do some extra work to make the console launching operate correctly on OS X and Linux.  I might send out an update of the preview within the next few days with full OS X and Linux support.\r\n\r\n**Disclaimer: USE AT YOUR OWN RISK**\r\n\r\nI have not followed the usual process of getting binaries signed for release because I just wanted to quickly get some feedback on this new feature without a full release process.  As such, I am required to point out that downloading and using this preview is done at your own risk.  Consult the [project license](https://raw.githubusercontent.com/PowerShell/vscode-powershell/master/LICENSE.txt) for full legalese ;)\r\n\r\n### How to install and use it\r\n\r\n- Install the latest [Visual Studio Code Insiders](https://code.visualstudio.com/insiders) release.  This package does not work with the stable VS Code release (depends on APIs that haven't been released yet)\r\n- **Download [this ZIP file](https://github.com/PowerShell/vscode-powershell/files/512379/ms-vscode.PowerShell-0.7.9.zip)** and extract it into your `$HOME\\.vscode-insiders\\extensions` folder.\r\n- Load up a PowerShell project and open a `.ps1` or `.psm1` file.  The PowerShell console should open up shortly after and drop you directly into a PowerShell prompt.\r\n\r\n### Things to try\r\n\r\n- Use the F8 hotkey to execute code from an editor tab like you would in the ISE.  Does it do what you expect?\r\n- Define a function in the console and then try to get IntelliSense for it in the editor\r\n- Call `Get-Credential` or any other cmdlet that never worked right for you in VS Code.\r\n- Use the `psedit` command to open a file (same as in the ISE)\r\n- Try any of the [`$psEditor` API](https://powershell.github.io/PowerShellEditorServices/guide/extensions.html) methods from within the console\r\n- Change the `powershell.developer.powerShellExePath` setting to point to an installation of PowerShell Core on your Windows machine then restart VS Code.  You should get the same console experience for both full PowerShell and the new open-source release of PowerShell.\r\n- Change the `powershell.useX86Host` setting to true if you want to try using the same experience with the 32-bit PowerShell console in a 64-bit Windows install.  This also requires a restart of VS Code.\r\n\r\n### Things that don't work\r\n\r\n- Probably a lot.  I would not use this for real development yet, it's just a preview of what's coming next.\r\n- PSReadline does not work.  I need to work with @lzybkr to come up with a way to coordinate my usage of the runspace with PSReadline's.  If you load the PSReadline module into your session, all language features will stop working.\r\n- Script debugging mostly doesn't work.  I need to do some hacking magic to make our existing debugging experience work with the console host's debugging implementation.\r\n- Remote PowerShell sessions should work but IntelliSense and other language features will not be aware of the session.  I'm planning to fix this before the official update.\r\n\r\n### Updates to the preview\r\n\r\nAs you report issues, I'll try to push out a few updates to the preview to resolve any major problems.  I'll update this issue with the latest download links as we go.\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/comments/252513016","html_url":"https://github.com/PowerShell/vscode-powershell/issues/311#issuecomment-252513016","issue_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/311","id":252513016,"user":{"login":"rkeithhill","id":5177512,"avatar_url":"https://avatars.githubusercontent.com/u/5177512?v=3","gravatar_id":"","url":"https://api.github.com/users/rkeithhill","html_url":"https://github.com/rkeithhill","followers_url":"https://api.github.com/users/rkeithhill/followers","following_url":"https://api.github.com/users/rkeithhill/following{/other_user}","gists_url":"https://api.github.com/users/rkeithhill/gists{/gist_id}","starred_url":"https://api.github.com/users/rkeithhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkeithhill/subscriptions","organizations_url":"https://api.github.com/users/rkeithhill/orgs","repos_url":"https://api.github.com/users/rkeithhill/repos","events_url":"https://api.github.com/users/rkeithhill/events{/privacy}","received_events_url":"https://api.github.com/users/rkeithhill/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T21:13:45Z","updated_at":"2016-10-09T21:13:45Z","body":"```\r\nProfile script: Host, what's your name?\r\nVSCode terminal: ConsoleHost\r\nProfile script: OK \"ConsoleHost\", what's your **real** name?\r\n```\r\n😃 "}}
{"actor":{"display_login":"rkeithhill"}}