visual-studio-codevscode-extensionsnode.js-stream

Why is stream.pipeline undefined inside extension for vscode?


I' trying to use stream.pipeline in my vscode extension, but it is undefined. If i just run another .ts file in the same project via node.js, stream.pipeline is defined and works properly. How do I use stream.pipeline in vscode extension?


Solution

  • stream.pipeline was introduced in Node 10.0 while VS Code 1.28 runs extensions in a Node 8.9 environment

    Once VS Code upgrades to Electron 3 (which includes node 10.2), you will be able to use this api