razor icon indicating copy to clipboard operation
razor copied to clipboard

HTML elements are missing from tag close completions

Open Peter-Juhasz opened this issue 1 year ago • 4 comments

VS 17.10.0 P1

Another super frustrating bug. Every time I try to close a div, I end up with <div></FluentDivider>.

https://github.com/dotnet/razor/assets/9047283/5184b101-0916-4516-8ea2-319504c451d4

Similar to #9725, but timing does not play a role in this case.

Peter-Juhasz avatar Mar 05 '24 09:03 Peter-Juhasz

@Peter-Juhasz would you be able to share a repro project? I tried this, and it works fine in simple scenarios.

alexgav avatar Mar 11 '24 18:03 alexgav

I can't share a project, but I can consistently reproduce it and it fails even in the simplest file:

<div>

</div>

@code {

}

I don't even need to type the closing tag, just request completions at the closing element:

image

Peter-Juhasz avatar Mar 14 '24 15:03 Peter-Juhasz

@Peter-Juhasz this seems to work for me know - e.g.

Image

would you please let me know if this still reproes for you? Thank you!

alexgav avatar Jun 30 '25 06:06 alexgav

Yes it still does:

Image

Peter-Juhasz avatar Jun 30 '25 08:06 Peter-Juhasz