Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Apply terminal title name configuration #606

Merged
merged 8 commits into from
Jan 30, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export class RemoteTerminalWidget extends TerminalWidgetImpl {
}
}));

this.toDispose.push(this.term.onTitleChange((title: string) => {
if (this.options.useServerTitle) {
this.title.label = this.options.machineName + ': ' + title;
}
}));

const badDefaultLoginErr = 'command terminated with exit code 126';
const missedPrivilegesErr = 'cannot create resource "pods/exec"';
this.toDispose.push(this.remoteTerminalWatcher.onTerminalExecError(errEvent => {
Expand Down