You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Completion trigger chars don't work with YAML grammar extension languages #230277
The issue is that if trigger chars are all alphabetic chars for instance only a few of them do trigger completion proposal computations. The only trigger char that works is 'y' bringing up 3 completions starting with `y'. If you try 's', 'd', 'm' which also have 3 completion proposals starting with these chars the completion proposal computation (completion provider) is never invoked. Seems random really.
{
"name": "Sample Properties YAML",
"scopeName": "source.sample-properties-yaml",
"patterns": [
{
"comment": "source.yaml is defined in vscode core",
"include": "source.yaml"
}
]
}
If the grammar is not defined for the language then completion proposals show up fine for all trigger chars. The syntax highlighting is lost however. Feels, therefore, that the issue is related to the grammar definition of the yaml based language.
You prob need to enable "strings": true under "editor.quickSuggestions" in package.json
This will enable completion triggers within strings based on your "wordPattern" in language-configuration.json
Activity
RedCMD commentedon Oct 2, 2024
You prob need to enable
"strings": trueunder"editor.quickSuggestions"inpackage.jsonThis will enable completion triggers within
stringsbased on your"wordPattern"inlanguage-configuration.jsonidk why some letters work but not others
BoykoAlex commentedon Oct 2, 2024
Wow... thanks a lot. I would never be able to guess that :-) It did help and I think this can be resolved now - thanks again!