提交 2b7e5ca5 编写于 作者: D Daniel Imms

Fix terminal exception when create new is called on uninitialized panel

Fixes #11377
上级 aae56e20
......@@ -196,6 +196,12 @@ export class TerminalService implements ITerminalService {
}
return this.focus().then((terminalPanel) => {
// If the terminal panel has not been initialized yet skip this, the terminal will be
// created via a call from TerminalPanel.setVisible
if (terminalPanel === null) {
return;
}
// Only create a new process if none have been created since toggling the terminal
// panel. This happens when createNew is called when the panel is either empty or no yet
// created.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册