-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
terminal not painting until resize #34554
Comments
@chrisdias any errors in the devtools console? |
@Tyriar no. |
@chrisdias are the terminals created in the background and the rendering is not working when first moved to the foreground? @liuliangsir what's the error? |
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions. |
(reopening)
export function activate(context: vscode.ExtensionContext) {
let disposable = vscode.commands.registerCommand('extension.sayHello', () => {
let terminal = vscode.window.createTerminal('test');
terminal.show();
terminal.sendText('echo hello');
});
context.subscriptions.push(disposable);
}
What you will observe on Windows is that the terminal most of the times remains blank. Resizing will make the contents appear. |
This fixes an issue where background terminals were created while not visible. This caused the internal charMeasure object to have 0 width and height so nothing would render. Fixes #34554
Fix pushed to master and release/1.17 |
For the interested, I believe this was caused by a race condition that only seemed to happen on Windows for some reason. The terminal would perform a layout before the terminal instance was visible, this caused the element which measured the character to return 0 width and 0 height which prevents all rendering. The fix was to force a layout whenever visibility of the terminal was set to true. |
@Tyriar I failed to repro this on Mac, glad we have a fix, thanks! |
I am getting the same bug on: Resizing the terminal area fixes the issue. |
@Tyriar This is very much not fixed yet. I'm running v1.17.1 under macOS 10.13. This is how to reproduce it:
Also when doing this everything except the window control buttons moves very annoyingly up about a couple of pixels. Only if the statusbar is hidden 😕 |
This fixes an issue where background terminals were created while not visible. This caused the internal charMeasure object to have 0 width and height so nothing would render. Fixes #34554
@fabiospampinato This fix will be in the upcoming 1.17.2. |
Windows
1.17.0-insider
b0c063
The docker extension creates a lot of terminals when running docker commands. I'm finding that the content of the terminal is not painting until i resize the terminal window. It looks like the tool is hung, then you resize, then you can see the content.
Here's the docker build command running:
Then resize, and now you can see the terminal:
The text was updated successfully, but these errors were encountered: