The language server in vscode doesn't offer autocomplete for nested object properties when the key starts with a number.
For example, when I type {{ address.2country. }} properties name and code are not offered, but if I replace 2country with country in the object definition, it will properly show the suggestions.
[
{
name: 'address',
access: {
global: true,
parents: [],
template: []
},
properties: [
{
name: 'city',
return_type: [
{
type: 'string',
name: ''
}
],
access: {
global: false,
parents: [],
template: []
}
},
{
name: '2country',
return_type: [
{
type: 'country_data',
name: ''
}
],
access: {
global: false,
parents: [],
template: []
}
}
],
return_type: []
},
{
name: 'country_data',
access: {
global: false,
parents: [],
template: []
},
properties: [
{
name: 'name',
return_type: [
{
type: 'string',
name: ''
}
],
access: {
global: false,
parents: [],
template: []
}
},
{
name: 'code',
return_type: [
{
type: 'string',
name: ''
}
],
access: {
global: false,
parents: [],
template: []
}
}
]
}
]
Describe the bug
The language server in vscode doesn't offer autocomplete for nested object properties when the key starts with a number.
For example, when I type
{{ address.2country. }}propertiesnameandcodeare not offered, but if I replace2countrywithcountryin the object definition, it will properly show the suggestions.Source
custom object definition
Expected behaviour
Autocomplete suggestions should be offered for elements that are starting with any alphanumeric characters.
Actual behaviour
Autocomplete suggestions aren't offered when the key starts with a number.
Debugging information
Additional context
Any ideas on how to fix this?