-
Notifications
You must be signed in to change notification settings - Fork 29k
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
tmux renders with wrong size when there are several terminals #44325
Comments
(Experimental duplicate detection) |
https://github.com/tmux/tmux/blob/master/CHANGES#L141-L143 might be of your interest.
I'm wondering if this is what you intended, or do you have an alternative setup. (Also I'm on tmux 2.6). #!/bin/bash
SESSION="vscode`pwd | md5`"
tmux attach-session -d -t $SESSION || tmux new-session -s $SESSION The following works (dropped the #!/bin/bash
SESSION="vscode`pwd | md5`"
tmux attach-session -t $SESSION || tmux new-session -s $SESSION |
I'm also on tmux 2.6.
I honestly didn't think of the This is the script I've been using. It seems equivalent to your second one. #!/bin/sh
SESSION="`pwd|sed "s#$CODE_DIR/##"|sed "s#$HOME/##"|sed "s#$HOME#~#"|sed "s#\.##"`-vscode"
tmux attach-session -t $SESSION || tmux new-session -s $SESSION I actually think adding |
I think there was a change in the way layout happens when splitting was introduced that was causing a bad layout to happen (cols = NaN). |
Pushed to master and release/1.21 |
I have the setup that was described by João Moreno (@joaomoreno) in his blog post https://medium.com/@joaomoreno/persistent-terminal-sessions-in-vs-code-8fc469ed6b41
Whenever I open a terminal tab in VS Code, i enter a tmux session (often attaching to an already present tmux session)
I love this setup! Among other things, it allows all the window control of tmux and it enables me to restart VSCode without losing my terminal session.
However, in the insiders edition (during my testing of #43683) I have experienced a new problem:
Whenever I have more than one Integrated terminal, and toggle visibility of the terminal window, the tmux window fills up with periods:
Steps to Reproduce:
+
icon at the top right of the terminal window2: sh
name of the terminalThis problem recurs every time I hide the terminal and then show it again. Then the screen is again filled with “.” as if it was actively showing on a much smaller window.
I have aggressive-resize turned on in tmux, but neither having it on or off makes any difference..
The problem also occurs if I resize Visual Studio Code while I have tmux visible and have two terminals.
You might well ask why I would create extra terminal windows, when tmux already has the functionality of multiple windows. The thing is that the debugger by default creates a new terminal (see #43683). So every time I start the debugger this problem occurs.
This is a new problem for 1.21.0-insider. The release version 1.20.1 does not have this issue.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: