(protected options: IPtyTerminalOptions)
| 89 | }; |
| 90 | |
| 91 | constructor(protected options: IPtyTerminalOptions) { |
| 92 | super(); |
| 93 | this.terminal = vscode.window.createTerminal({ |
| 94 | name: this.options.name, |
| 95 | pty: this.pty |
| 96 | }); |
| 97 | this.resetOptions(options); |
| 98 | PtyTerminal.oldOnes[this.options.name] = this; |
| 99 | vscode.window.onDidCloseTerminal((t) => { |
| 100 | if ((t === this.terminal) && !this.disposing) { |
| 101 | this.onClose(); |
| 102 | } |
| 103 | }); |
| 104 | } |
| 105 | |
| 106 | private onOpen() { |
| 107 | this.isReady = true; |
nothing calls this directly
no test coverage detected