Closed teamon closed 4 months ago
This is what ElixirLS shows:
and hitting enter will move the cursor to the next line and insert the missing end
You hit d
with triggers the completions, then then the editor fuzzy filters them down to show what's in the screenshot.
Is this zed? I'm not sure why it would auto select the first option, I imagine that has other consequences.
Orthogonally, can probably add do
as a completion candidate.
This one is from vscode. ElixirLS seems to prioritize do as a reserved keyword and selects it as the first option.
Can I can test something else or get some logs to see why this happens?
To clarify, what are you wanting to test? Why VScode is selecting the completion item?
Well just anything I can do to help :)
Gotcha, well I'll clarify:
do
is not a completion item in Next LS, so it not appearing is expected (this can be changed if desired), nothing to debug.
VScode auto selecting the first candidate is not in my control, there might be settings around it, but I don't use it so I'm unaware.
Changing the second option is probably what you want.
I've checked with Zed and there completions are shown on d
, then hidden on do
and then shown again on do<any other character>
.
Thanks for all the help, I'm going to close this for now.
It seems that
do|
triggers completions and when hitting enter it will insertdefoverridable
instead of going to the next line. Sincedo
is a keyword I think it should skip completions (ideally go to the next line and insertend
if needed)