You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const vscode=require("vscode"),cp=require("child_process");var terminal;function activate(context){let runAardvarkProgramCommand=vscode.commands.registerCommand("aardvark.runAardvarkProgram",(async()=>{const editor=vscode.window.activeTextEditor;if(!editor)return void vscode.window.showErrorMessage("No active text editor.");const filePath=editor.document.fileName;terminal||(terminal=vscode.window.createTerminal("Aardvark Terminal")),terminal.sendText(`adk run "${filePath}"`),terminal.show()}));context.subscriptions.push(runAardvarkProgramCommand);let runAardvarkProgramButton=vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);runAardvarkProgramButton.text="$(triangle-right) Run Aardvark Program",runAardvarkProgramButton.command="aardvark.runAardvarkProgram",context.subscriptions.push(runAardvarkProgramButton)}function deactivate(){serverProcess.kill()}module.exports={activate:activate,deactivate:deactivate};