提交 ae3c6c6c 编写于 作者: D Daniel Imms

Set styles correctly when terminal panel is not restored on launch

上级 b4cebc20
......@@ -92,6 +92,8 @@ export class TerminalPanel extends Panel implements ITerminalPanel {
} else {
return super.setVisible(visible).then(() => {
this.terminalService.createInstance();
this.updateConfig();
this.updateTheme();
});
}
}
......
......@@ -52,11 +52,11 @@ export class TerminalService implements ITerminalService {
public createInstance(name?: string, shellPath?: string): ITerminalInstance {
let terminalInstance = <TerminalInstance>this.instantiationService.createInstance(TerminalInstance,
this.terminalFocusContextKey, this.onTerminalInstanceDispose.bind(this), this._configHelper, this.terminalContainer, name, shellPath);
// TODO: Dispose when terminalInstance is disposed
// TODO: Dispose this event handler when the terminalInstance is disposed
terminalInstance.onTitleChanged(this._onInstanceTitleChanged.fire, this._onInstanceTitleChanged);
this.terminalInstances.push(terminalInstance);
if (this.terminalInstances.length === 1) {
// It's the first instance so it should be focused
// It's the first instance so it should be made active automatically
this.setActiveInstanceByIndex(0);
}
this._onInstancesChanged.fire();
......@@ -149,7 +149,6 @@ export class TerminalService implements ITerminalService {
this.partService.setPanelHidden(true);
return TPromise.as(null);
}
this.setActiveInstance(this.getActiveInstance());
this.showPanel(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册