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
* A minimal inline Debug Adapter that runs the target program directly without a debug adapter
14
18
* when the user invokes "Run Without Debugging".
@@ -117,11 +121,48 @@ export class RunWithoutDebuggingAdapter implements vscode.DebugAdapter {
117
121
}elseif(platform==='linux'&&sessionIsWsl()){
118
122
cp.spawn('/mnt/c/Windows/System32/cmd.exe',['/c','start','bash','-c',`${cmdLine};read -p 'Press enter to continue...'`],{ env,detached: true,stdio: 'ignore'}).unref();
119
123
}else{// platform === 'linux'
120
-
cp.spawn('bash',['-c',`${cmdLine};read -p 'Press enter to continue...'`],{cwd, env,detached: true,stdio: 'ignore'}).unref();
constmessage=localize('no.terminal.emulator','No terminal emulator found. Please set the $TERMINAL environment variable to your terminal emulator of choice, or install one of the following: x-terminal-emulator, gnome-terminal, konsole, xterm.');
163
+
vscode.window.showErrorMessage(message);
164
+
}
165
+
125
166
/**
126
167
* Spawn the process and forward stdout/stderr as DAP output events.
0 commit comments