mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
terminal: survive failed resize (IDEA-203500)
The underlying cause still needs investigation.
This commit is contained in:
@@ -212,7 +212,12 @@ public abstract class AbstractTerminalRunner<T extends Process> {
|
||||
// Resize ASAP once the process started.
|
||||
// Even though it will be resized in invokeLater, it takes some time until invokeLater is executed.
|
||||
// Sometimes it's enough to have cropped output, if the output is restricted by the terminal width.
|
||||
TerminalStarter.resizeTerminal(terminalWidget.getTerminal(), connector, size, RequestOrigin.User);
|
||||
try {
|
||||
TerminalStarter.resizeTerminal(terminalWidget.getTerminal(), connector, size, RequestOrigin.User);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.warn("Cannot resize right after creation, process.isAlive: " + process.isAlive(), e);
|
||||
}
|
||||
}
|
||||
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
|
||||
Reference in New Issue
Block a user