-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated terminal needs multi-line input support #569
Comments
Hey Chris, this is happening because I haven't added support for multi-line input. I'll try to get this in for 0.10.2. |
Ah, okay. Also, any idea on why the powershell process would be so slow on my Surface Pro 3 Core i5/256 system? If I terminate the integrated console or PowerShell session in VSCode, overall performance dramatically improves. I don't have any similar perf issues with PowerShell outside of VSCode. |
Multi-line badly needed. Also, text navigation in input, like |
I was trying to decide whether I should add text navigation or let PSReadline take care of it once I get that integration working. Since that may take a little while, maybe it's better to get some basic navigation hotkeys working? |
Yes please 👍 Heavy user of |
If PSReadLine integration was easy, that's obviously very nice ;-) But basic multi-line and text editor cursor movement keys would go a long way toward making a long wait comfortable ;-) |
Please make it so! |
This still doesn't work in v1.18.1 Is this in the timeline? |
@el-chazmo thanks for your patience! This will be fixed when the Integrated Terminal supports PSReadline. @SeeminglyScience has been working hard on adding it. I don't have a timeline but he might be able to supply one. Or to supply an update. |
+Label AintGonnaDoIt Can we agree that after supposedly trying to get PSReadLine integrated for over a year, it's long past time to improve your own input? I mean: how many people actually type in that console, the way it is? Nobody on my team will use the interactive debugger, because working in that terminal is frustrating. |
@Jaykul It's mostly done, PR is PowerShell/PowerShellEditorServices#672 if you want to try it out 😀 |
The Posh masses really need to STOP posting on every blog how vscode is in ANY way the "best" Posh editor/IDE to be using (as of today). I commend the effort but I cannot fathom anyone coming from a real Posh background using IDEs like Pstudio/Primalforms/conemu with npp/posh split-screened or heck - how about just plain old Notepad++ with powershell.exe opened below it for that matter calling vscode a step-up. I'm trying to understand this part of over a full YEAR of "waiting for psReadline" to work. Have you taken a look at something like ConEmu, who's darned source code is openly posted for you to review, and since that single individual developer DID manage to quickly get FAR BEYOND psreadline usability, and in fact successfully process every single Posh (and heck, you can literally flip the script and get it to swallow up vscode itself now for that matter as shown below) and working pretty much error-free 100% of the time for most of us.....then why is it again that vscode with the entire MS DEV at it's disposal can't get even close to the conemu equivalent terminal emulator for only the Posh/PoshCore hosting/emulation? The issue is when everywhere I look vscode is being pushed as "the" IDE with "terminal" for Posh DEV right now, yet I cannot even so much as paste a simple multi-line splatted param or hashtable into the only viable Posh "terminal" in vscode without every line vomiting red because the interpreter has no concept of what a line continuation even is...or as Joel said total lack of basic navigation.....despite the fact that by now it really should be, it is unfortunately IMO still not ready for serious Posh development usage and there is no way I can come close to moving coding efforts into vscode....but after 30+ yrs of being a MS evangelist I guess a boy can still dream! 😉 If it helps, here is vscode being pulled into Conemu as a child docked terminal with full injection and ANSI support: (So why can't powershell.exe or pwsh.exe be integrated into vscode the exact same way proven to work for years in conemu? It's using WINAPI and injection all fully supported methods last I checked) |
@CollinChaffin The difficult part wasn't getting PSReadLine to work in VSCode. The challenge was getting PSReadLine to work in the same PowerShell All that said, full support for PSReadLine is implemented. The latest preview build is available in this comment if you'd like to help test. |
Just popping in to cast my vote for multi-line support in the extension's "PowerShell Integrated Console". It works fine in the standard console opend via `ctrl+``, so it's frustrating when you open a ps1 file and suddenly it "stops working". |
@sdsalyer the "PowerShell Preview" extension in the marketplace has PSReadLine support and multi-line support. Please check out our blog post here: |
Closing as PSReadLine is now available in the PowerShell Preview extension, tracking that PSReadLine is not available in the main PowerShell Extension here #1793 |
System Details
$PSVersionTable
:Issue Description
I have a Hashtable in my PowerShell module, and the new terminal in 0.10 does not work correctly like it used to. Paste the following into the Terminal:
And you will get the following output:
Not only does one get the exceptions above, but the terminal is extremely slow. I don't know if it's because of the loaded PSM1 file I have (which is more than 80k lines, and 2.2MB in size).
Attached Logs
When I enable plugin verbose logging,
powershell.exe
will terminate and I can't then reproduce the issue:(the log file generated contains the text I pasted above.)
The text was updated successfully, but these errors were encountered: