<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/142681>142681</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb-dap] REPL auto-detection does not recognize scripted command containers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb-dap
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vogelsgesang
      </td>
    </tr>
</table>

<pre>
    If I add a custom command container via

```
command container add -h 'Debugging utilities for C++20 coroutines' coro
command script add -o -p -c {__name__}.CoroBacktraceCommand coro bt
```

the auto-detection of the REPL mode for `coro bt` does not work as expected.
lldb-dap thinks this would be an expression, although it should be treated as a LLDB command.

For a full debugger script, see the example script in #142651 (inside the `DebuggingCoroutines.rst`)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkUsuK6zgQ_Rp5U8TISuLHwos8JtDQi2F-IJSlsq1pWRUkOd0zX39xXvfSDQJhU3V0XhijHTxRK7Z7sT1mOKeRQ3vlgVwcKKIfso7Nf-1bD2-AxgCCnmPiCTRPE3oDmn1C6ynA1aKQu-WU8nHk7ufYgrIaQajqSN08DNYPMCfrbLIUoecAB6H2Qu2VBM2B52Q9RaGq29cfkFEHe0l3PIbVBVYaRLU_nz1OdD6L6pgfOPAe9UcKqOnwohIYuvSNqJC7NBLgnHhlKJFOlj1wD8vff_76-x0mNnTjJ0r5xCglGKYInhN8cvgAjEBfF9KJTC7kzjnTrQxeII3Wf8TlivDJszPQEaBfhgPFaNkLdQB0aeR5GMEmiONzLAXCRGbBRnh_P-6f5ud33icOgNDPzoG5WUrhYc6CGYluGugLp4ujp23Wg1DrYqPKbQFC1dZHa-6TopSvaA6vBPIQF71CNZlp16ZZN5hRW1Sbuqkb2VTZ2OqiIdnpNVZdQX1Vdo3cVk1dNH2FTW90Zlsl1VaWcq1UURdVLrE3dUFrWSIarAuxkTShdblz1ynnMGQ2xpnahWddZA47cvHWVqWe3gqllu6GdtlZdfMQxUY6G1P8jZJscreWv5a2x3uq3wJ_pRlI8-Dt_0_DyPysfMzm4NoxpUsU651QJ6FOg03j3OWaJ6FOy_uPa3UJ_C_pJNTpJikKdXqourbqVwAAAP__TfcqDg">