How to open non integrated terminal window from vscode extension?

I am developing an extension for Visual Studio Code. I need to open a terminal window and run some command there (One after another finishes). Same as Terminal.sendText but not in integrated terminal. Is there a way to do that?

Update

The closest I’ve got is using:

const childProcess = spawn('node', ['--version'],{
    shell: true,
    detached: true,
    windowsHide: false
});

And the problem is it closes automatically

125 thoughts on “How to open non integrated terminal window from vscode extension?”