public override Task<IReadOnlyList<IDebugLaunchSettings>> QueryDebugTargetsAsync(DebugLaunchOptions launchOptions) {
var targets = new List<IDebugLaunchSettings>();
if (Session.IsHostRunning) {
uint pid = RDebugPortSupplier.GetProcessId(Session.Id);
var target = new DebugLaunchSettings(launchOptions) {
LaunchOperation = DebugLaunchOperation.AlreadyRunning,
PortSupplierGuid = DebuggerGuids.PortSupplier,
PortName = RDebugPortSupplier.PortName,
LaunchDebugEngineGuid = DebuggerGuids.DebugEngine,
ProcessId = (int)pid,
Executable = RDebugPortSupplier.GetExecutableForAttach(pid),
};
targets.Add(target);
}
return Task.FromResult((IReadOnlyList<IDebugLaunchSettings>)targets);
}