-
Notifications
You must be signed in to change notification settings - Fork 491
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
VSCode PowerShell Preview PSES no longer shows history from previous F8/F5 command in buffer #3683
VSCode PowerShell Preview PSES no longer shows history from previous F8/F5 command in buffer #3683
Comments
It's shown in |
Some people actually want this behavior: #2307 so this should get turned into an option. I personally use F8 to load functions or run other big sections of code so when I press arrow up and my entire console gets filled up with a function definition I get annoyed. |
I think @MartinGC94 is right and this should be configurable, moving to consideration milestone. |
This might get a little messy. Someone tell me what the want the setting name to be 😂 the whole subblock of settings under |
Ignoring the naming of the setting... 🙂for now. I was thinking of optional different behaviors, i likely should have mentioned this before. Also I was trying to think back to ISE behavior. Here are a few more considerations or options of how code might be executed/presented. I am not sure what work has already been done etc or if this fits with this work?
What is the expectations.... I would tentatively say for the options listed the outcome might be (assuming the new setting is true)
Sorry for the late reply on this with the extra specifications Etc. |
Because this is going to require some amount of designing and a new API (the setting to control it), while we want to fix it eventually, this regression is probably going to make it's way into the stable channel so we can evaluate more user feedback and prioritize it as necessary. |
It looks likes this change has made it into the stable channel. :-( The previous behavior was one of the things I really liked in VSCode compared to ISE. Please revert this change until you've made it configurable. :-( |
It's been a while since we chatted over this experience. We had too many options to consider and it was difficult to select one in time. I do miss having the command history. I figured I would see if there were any decisions that we needed to make over this? Seems since this shipped, it's now breaking change in both directions, so we will need a configurable setting, default to the current behavior for now, then people can opt back into getting the history shown?! I will just add (again), An optional experience that I like is, that If you press F5, it can just place the dot sourced script file path in the history, that way up arrow you can invoke the script by path. However if the file was not saved, it's basically F8 behavior that it just pastes the command in the history and up arrow shows the whole buffer of the previous command. So not sure on others' opinions or preferences on that? |
Ugh, ok, it gets put in PowerShell's history e.g. |
Sorry, I think I went to revert it and discovered it was much harder to do than expected after the pipeline rewrite because of this:
|
I agree with @ruudhanegraaf, this was one of the features I loved from vscode vs ise. A lot of times I run my initial command in the editor and then modify it in the console after by pressing up. I was hoping there can be at least an optional setting for this. |
Didn't realize just how much productivity I gained back from having commands in history. So thankful this is back 👍🏼🙏🏼✅😎🙂 |
Sorry it took us so long to fix! |
Prerequisites
Summary
The current behavior of the PowerShell Extension is to show the history in the Terminal after using F5 or F8
Typo on my video: "Up arrow does not show history"
There are also some artifacts and clearing of the screen when executing the second command, however I didn't open this issue for that.
Cannot_See_History_with_UpArrow.mp4
issue starts at 30 seconds onwards.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
run a command from the script pane with F8
watch it execute
Go to the terminal and press the up arrow, the previous command is not in the buffer
It is shown in the history
Visuals
video is above, you can skip to 30 seconds.
Logs
No response
The text was updated successfully, but these errors were encountered: