-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Kill Terminal
when only one terminal is open does not close the terminal panel
#165067
Comments
@joyceerhl anything else needed to repro this? does it always happen for you? kill.mov |
Hm, if I start VS Code up with the panel visible, the first time it seems to close the panel as expected, then if I use ctrl+` to create a new terminal, on the second time onward it stops working. terminal-maximize.mp4I also see this error but unsure if it's related
|
oh that could certainly be related bc cannot repro and also not seeing that error on my computer. I have a PR to fix that error - will be interesting to see if you can repro tomorrow when that fix is in |
I won't be able to check on reproing this till after our stable 1.73 goes out because insiders tracks the release branch during debt week |
@joyceerhl assuming it also reproduced in oss? |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I expect this to be fixed in #164899 |
@joyceerhl I can't repro, any special steps/environment? |
Cannot reproduce either |
Just Windows and Powershell. I can't repro if I disable all extensions, but extension bisect points to CPP Tools and I can still repro it after uninstalling CPP Tools so I doubt extension bisect is correct here. I do also see that the terminal initializes much faster if I have all extensions disabled. This seems flaky but eventually happens after killing the terminal a few times for me, could it be some kind of race condition? |
Also reported at #163719 |
cpp tools is also present in the extension list reported in #163719 |
I'd be surprised if an extension could influence this |
Have been experiencing this for a good couple of months now. I thought maybe I had misconfigured Git Bash (my default terminal) or something. It's good to hear other people have the same issue but looking back over this thread I don't really see a common denominator or any kind of workaround -- I just wind up clicking the "X" button on the terminal pane. It's annoying enough that I went looking for this issue; I'd sure like to at least have a way forward unless/until we figure out a root cause... ETA: the "close pane" Command Palette option will close the orphaned Terminal pane, so that's something I guess. |
And you're right, I found the culprit to be https://github.com/gitkraken/vscode-gitlens. Uninstalling the extension fixes the issue, re-installing it brings the issue back |
Good catch, do you think you could put together an issue for them? The only sort-of-related thing I could find is gitkraken/vscode-gitlens#2312 . |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Happy Coding! |
If an extension is to "blame" this issue is still our fault, the terminal panel should never show unless:
|
@Tyriar FWIW, Given the steps in gitkraken/vscode-gitlens#2691, I can only imagine that it is something related to the TerminalLinkProvider -- since that is the only thing GL does with the terminal without the user actually executing a small number of Git commands. |
@eamodio that would surprise me unless there are exceptions in the console as that could interrupt disposal are there any exceptions, do you see any when this repros? |
I can't reproduce it. |
Me neither 🤷 |
@joyceerhl let us know if you see something different |
@Tyriar this still happens for me, reliably, every time. Is there some kind of debug output I can send to help you track it down? I agree that it should not be possible for an extension to break Code in this manner... |
@thw0rted can you post your settings.json and list of extensions? You could try set log level to trace (via command palette) and then check the Output panel's "Window" log. Another place to check is whether any exceptions occur in the devtools console (Help > Toggle Developer Tools). Did you try with Insiders, or Stable? |
Hey, sorry it took me so long to get back to this. I only run Stable release.
That's the logs from opening a terminal with CTRL+backtick, exiting, closing the (now empty) bottom panel by clicking the "X" button, then opening a terminal (same kbd shortcut) again. Nothing jumps out at me. |
We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that. Happy Coding! |
I, too, am experiencing this. The only immediate thing for me is also having the GitLens extension. |
In the current stable, when there is only one terminal in the terminal area, clicking
Kill Terminal
(the trash icon) would also minimize the panel. This is no longer the case in the latest insiders:The text was updated successfully, but these errors were encountered: