MCPcopy Create free account
hub / github.com/Marus/cortex-debug / constructor

Method constructor

src/frontend/pty.ts:91–104  ·  view source on GitHub ↗
(protected options: IPtyTerminalOptions)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

resetOptionsMethod · 0.95
onCloseMethod · 0.95
createTerminalMethod · 0.80

Tested by

no test coverage detected