Skip to main content

Module LocalPTYCreateProcess

Module LocalPTYCreateProcess 

Source
Expand description

Wire method: localPty:createProcess. VS Code’s IPtyService.createProcess is typed Promise<number>. The workbench does new LocalPty(id, …) and keys _ptys by that integer; returning the full { id, name, pid } object causes every subsequent _ptys.get(<integer>) lookup to return undefined and xterm to receive zero bytes. This handler strips down to the integer id.

Functions§

Fn