I have the same problem and this answer helped me. My resulting code:
vscode.commands.executeCommand( 'vscode.openWith', vscode.Uri.parse('file:///path/to/my/file'), 'default', vscode.ViewColumn.Beside )