DanielGavin/ols

Unhelpful completion after colon in switch cases

differenceclouds opened this issue · 4 comments

Unsure if this is an ols issue. If not, no problem, guidance welcome. I'm using Sublime Text.

Basically, after typing a colon in a switch case, there are a bunch of things that don't make sense in the autocomplete. I think there should be zero auto-complete in this case, just allowing spaces, tabs, and line returns without any autocomplete coming up until you start typing something. But instead, I have to hit escape every time, or more likely, make a mistake, delete it and try again.

This is one of just a couple places that make me want to disable autocomplete altogether, but if it is able to be controlled, there is no need.

Screen Shot 2024-08-14 at 12 58 27 PM

I think it might be sublime. It doesn't happen on vscode.

If you don't want to be spammed with completion, you can just turn of the auto complete in sublime, and just have it show on ctrl+space.

There are snippets and sublimes completion that can be turned off.

The only time vscode will show completion is when typing letters, ., ->, etc.

it does happen only in sublime
but also only in odin
not sure exactly why though
when lsp is disabled, the completions are not triggered there