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

    <tr>
        <th>Summary</th>
        <td>
            clangd produces weird snippets
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Consider code like this:
```
void test2(int i1, int i2) {}

void test() {
    test2//cursor here
}
```

Invoke the code completion at the cursor place. It will produce an entry for `test2(int i1, int i2)` - good. But, this completion item has a text edit which inserts this as the text:
```
test2(${1:int i1}, ${2:int i2})
```

This seems to use the Snippet support (which, by itself, may be OK), but when the item is inserted, it will lead to an editor line like:
```
    test2(int i1, int i2)
```
which seems quite incorrect.

Should the snippet be like (i.e. just names, without the types):
```
test2(${1:i1}, ${2:i2})
```
?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVF-PmzAM_zThxTpEDZTywEN7p0qnPezh9gUCcUtugbDEaddvPwWo1ulu06RKBTv2749jpPf6PBI1ojyI8iWRgXvrmncje6tk0lp1a57t6LUiB51VBEZ_J-Bee5HvRbYX22z9ZfuL1QqYPKPAnR4Z9EbgM8xPKLAGUR1E9RKrHg4L3N1z2R4A7h2OAo9dcN466MlRrFpqHxBFtn8dL3ZmRAu_zg6TIdZ2BMlLeGkyGdlRCq8MV20MTM6q0BHIEWhkd4OTdSC22T_4i20GT3C2VqVwCBxz0YhHSM00QC89SGD6yUBKM1x73fWgR0-O_VIi_Uwtnvno452CwEJUh43I9yuZ6iViLmG8h3EO1x-d-RaBPNHggS0Ev5j0NuppIgYfpsk6BoG7mV_s3N5Asydzii-DvEFL8PVLbB6TISqhce4y69R-FUVq9ml11pBUETE6qzRbB0aPy8X5qPVh4J9a_ufpxclF04-gmUCPnXWOOk4X0W-9DUbNHP2qtF0vbURIKYX34BlGOZCPUFfNvQ3LTeHbFIP1f43kk3H8ZRT5MVFNruq8lgk1m6rAqqzLHSZ9U1FFebEpyhPmRYeVLE9UbvKsPu3q7WmXJbrBDMssx3xTl5jXad7malvUWYF1WXZbJYqMBqlNasxlSK07J9r7QM0mx22OiZEtGT-vN-JIV5izAjFuu2ti0VMbzl4UmdGe_e82rNlQ0xk5ntV9WzxcSTt1t9YnwZmmZ57mr8G8smfNfWjTzg4Cj7HZ-vc0OftOHQs8zhS8wOPK8dLgrwAAAP__B3xfRw">