Thanks for the reply.
Yes, you’re right there are lots of completions there. But its all just the code. I have been looking at completion files. But (quite reasonably for code) there are no explanations of the expected behaviour.
So the completion files are as opaque as the docs.
I clearly have a gap in knowledge, but I have no real idea of what to look for.
I’ve been trying to get completions to work and its inconsistent at best.
I am trying to create completions for a syntax extended from YAML.
When I view the scope of the cursor in the Sublime Text file, it does say the scope is: source.yaml
For instance, I have tried this code in a sublime-completions file:
{
"scope": "source.yaml",
"completions": [
"Rule","View","Views","Look","BuiltinTransform"
]
}
When I type
!<
I get a autocompletion popup that contains words that have been created by Sublime. And it acknowledges the two completion words in the completion file.
But none of the others are there in the list.
In my explorations through the docs, Goggle and these forums, there seems to be indications that the pop-up list of autocompletions, and completions are not precisely the same things.
In my mind, if I’ve set a completions file for a scope, then all the completion options should appear in that drop down. And there should be an option for prioritising completions we have specified at the top of the list, and auto generated completions at the bottom.
As far as I can see, none of the available completion settings make this work as I would hope.
My expectations may be wrong, but the descriptions in the docs of what we SHOULD expect from completions is very vague.