in src/extension.ts [34:58]
export function activate(context: vscode.ExtensionContext) {
// debug adapters can be run in different ways by using a vscode.DebugAdapterDescriptorFactory:
switch (runMode) {
case 'server':
// run the debug adapter as a server inside the extension and communicate via a socket
activateMockDebug(context, new MockDebugAdapterServerDescriptorFactory());
break;
case 'namedPipeServer':
// run the debug adapter as a server inside the extension and communicate via a named pipe (Windows) or UNIX domain socket (non-Windows)
activateMockDebug(context, new MockDebugAdapterNamedPipeServerDescriptorFactory());
break;
case 'external': default:
// run the debug adapter as a separate process
activateMockDebug(context, new DebugAdapterExecutableFactory());
break;
case 'inline':
// run the debug adapter inside the extension and directly talk to it
activateMockDebug(context);
break;
}
}