In my onStart
I have the following:
if (!this.terminalWidget) {
// Layout doesn't need to be initialized before we can start a terminal
if (!this.terminal.getById("terminal")) {
this.terminalWidget = await this.terminal.newTerminal({
title: "Terminal",
destroyTermOnClose: true,
useServerTitle: false,
id: "terminal"
});
this.terminalWidget.start().then(a => this.terminal.open(this.terminalWidget));
}
}
The idea is that when they launch Theia it will open a new terminal if (and only if) the terminal isn’t open.
What actually happens is a new terminal is opened every time I refresh.
Additionally, the terminal “tab” title is “Terminal 0”, when it should simply be “Terminal” (as set in the options above).
Any help would be appreciated…
[original thread by Davey Shafik]