import * as vscode from 'vscode' ; import opn = require ( 'opn' ) ; export function open ( url ) { if ( ( < any > vscode . env ) . openExternal ) { vscode . env . openExternal ( vscode . Uri . parse ( url ) ) ; } else { opn ( url ) ; } }