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
Let the cursor be on the second line, as soon as you type < suggest widget shows and /header is the first suggestion.
I would not expect /header to be offered here since that tag is already closed.
it's just a proposal. It's up to the user to decide whether it makes sense to pick that proposal.
closing an element that is closed later makes more sense when doing it for common elements like <span> and <div>
the completion list is not super useful when just typing <. It contains all elements. Only when typing the next characters the list filters down to better proposals.
+1 for sorting it lower if we find out that the element is already closed later in the file. We currently don't look after the current completion position.
aeschli
changed the title
Closing tag suggested too aggressively in HTML
[html] don't show closing element proposal as first entry if element is already closed later
Mar 23, 2022
Have the following html content
Let the cursor be on the second line, as soon as you type
<
suggest widget shows and/header
is the first suggestion.I would not expect
/header
to be offered here since that tag is already closed.fyi @keford
The text was updated successfully, but these errors were encountered: