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
Typescript/HTML Autocomplete doesn't work for Attributes/Properties with an underscore #56077
I gave an example above, the context is Typescript.
Let‘s say you have a data structure defined: let data = { a:1, b:2, _c:3 }; with the corresponding interface def.
In (or within) the TS file you can easily reference data._c and the autocompletion works fine.
It doesn‘t work with intellisense when working in the html template file refereced by the TS file (or component therein): <span>this is a test {{ data.?? }}</span>
It just doesn‘t show any attributes with an underscore.
Removing the underscore from the interface declaration will immediately show the attribute.
EDIT:
Here a more visual example, this works in the TS file:
In its corresponding html template file, it doesn't show "_KpiN...":
hi Matt Bierner (@mjbvz), let me know if you need any more input on this.
'glad this is being looked at - as it's really taking away a key feature and reason our team switched to vs code.
Activity
vscodebot commentedon Aug 9, 2018
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
ramya-rao-a commentedon Aug 9, 2018
olivermuc commentedon Aug 10, 2018
I gave an example above, the context is Typescript.
Let‘s say you have a data structure defined:
let data = { a:1, b:2, _c:3 };with the corresponding interface def.In (or within) the TS file you can easily reference
data._cand the autocompletion works fine.It doesn‘t work with intellisense when working in the html template file refereced by the TS file (or component therein):
<span>this is a test {{ data.?? }}</span>It just doesn‘t show any attributes with an underscore.
Removing the underscore from the interface declaration will immediately show the attribute.
EDIT:
Here a more visual example, this works in the TS file:

In its corresponding html template file, it doesn't show "_KpiN...":

olivermuc commentedon Aug 10, 2018
It looks like this could belong here: angular/vscode-ng-language-service#258
Unless the completion handling is done in core...somewhere...
olivermuc commentedon Aug 14, 2018
hi Matt Bierner (@mjbvz), let me know if you need any more input on this.
'glad this is being looked at - as it's really taking away a key feature and reason our team switched to vs code.
mjbvz commentedon Aug 20, 2018
Yes, we don't provide built-in support for angular templates. That all comes from the angular extension. Please open the issue against them