import * as child_process from 'child_process' ; import * as vscode from 'vscode' ; import { readFileSync , existsSync , unlinkSync , statSync } from 'fs' ; import * as path from 'path' ; import * as fs from 'fs' ; import * as nls from 'vscode-nls' ; const localize = nls . loadMessageBundle ( ) ; function getReplayBinPath ( ) { let path = vscode . extensions . getExtension ( "KillerAll.advpl-vscode" ) . extensionPath ; if ( process . platform == "win32" ) { path += "\\bin\\alpha\\win\\" ; } else { if ( process . platform == "darwin" ) { path += "/bin/alpha/mac/" ; } else { path += "/bin/alpha/linux/" ; } } return path ; } export function getReplayExec ( ) { let path = getReplayBinPath ( ) ; if ( process . platform == "win32" ) { path += "TdsReplayPlay.exe" ; } else { path += "TdsReplayPlay" ; } return path ; }