-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Save terminal commands history #85831
Comments
This is maybe happening because of how we're killing/cleaning up the process? Not confirmed but I've seen plenty of reports for this on Windows. |
Hi, I have encountered this issue too. After studying, it seems to me that it's because how node-pty kill process. public kill(signal?: string): void {
this._defer(() => {
if (signal) {
throw new Error('Signals not supported on windows.');
}
this._close();
this._agent.kill();
});
} The process is force killed, therefore the shell terminates immediately and does not save history. The possible solutions IMO may be:
Please let me know what you think. I would like to solve this issue. |
@blueworrybear writing exit won't be good enough as there may not be enough time to exit gracefully before kill anyway (a race condition) and also |
@Tyriar you are right. Sending |
@Tyriar @blueworrybear And does |
I have this problem on windows, but I don't have it on macos
|
I don't think this is actionable so closing off. |
.. can't be solved ? |
I guess mister @Tyriar doesn’t understand the problem, or can’t reproduce it, so [he thinks] he’s reasonably closing it. As for myself, after when I’ve put |
@jerrygreen if you would like to enlighten me on a proper solution for this I'm all ears, modifying someone's rc file is not an acceptable fix because it would be too invasive. |
So, at least, you admit there is such an issue... So why closing? |
Because we're currently doing issue grooming to keep our issue count manageable, you can read about the process in #134730 and https://github.com/microsoft/vscode/wiki/Issue-Grooming |
Let me remind you again, this issue is related to Windows-users only. I wasn’t able to reproduce it on either macOS or Linux. Means that all the [countless] people that are just starting to use VSCode on Windows, newbies, - they will face this problem. If they had macOS, or Linux, they wouldn’t have such an issue, so closing this issue supports this idea: «If you want to code, don’t use Windows. Use Linux or macOS» This idea is in perception of people for a long time already. And Microsoft tries to fight that. I appreciate it. But what you did here, - is the otherwise. I don’t think this is what Microsoft would like. P.S. Well might be it’s not an issue of VSCode, but Windows itself, i.e. not your work. Do you confirm that? We can report a problem using Windows Feedback. |
This is a limitation of Git Bash itself. I'd recommend If you have ever taken a look into Git Bash's processes, you will also find it unlikely to be a Windows problem. When you run Git Bash from Start Menu ( When you run Git Bash in VS Code (
or
|
@Lemmingh thanks for the info, I'll add this to the terminal docs FAQ page |
Save gitbash terminal commands history on vscode exit for future sessions.
(using windows 10 it's not available)
The text was updated successfully, but these errors were encountered: