Language completions are not fully visible

I started testing and playing around with how to create syntax, completions for a new language. By looking around other people source code in GitHub the process is going fine but at this point I encounter a problem that that is rather annoying.

I want to create a complemention/snipper inside the Completions folder


<completion string="if">
            <behavior>
                <append><![CDATA[ $[condition]:
                $[pass]]]></append>
            </behavior>
        </completion>
        
        <completion string="if">
            <behavior>
                <append><![CDATA[ $[condition]:
                $[pass]
            else:
                $[pass]
                ]]></append>
            </behavior>
        </completion>

The above code works great! The placeholders are working and everything is flowers and rainbows but… the auto-completion dialog only shows “if”… which means that I can’t distinguish between the two.

I don’t want to use snippets because the placeholders are not visible.

Here is an example using Ruby and the Snippets provided by Michal M.Sapka where the placeholders are not visible only the name of the snippets are provided in the auto-completion dialog

I tried adding /r/n inside the CDATA … but doesn’t make a new line and also appends as part of the code

And also how to show function/method description in the auto-completion/tooltip dialog?