razor icon indicating copy to clipboard operation
razor copied to clipboard

Deleting whole line of closing tag leaves open tag in an incorrect state

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

VS 17.10.0 P3

Place caret on closing tag name and press Shift+Del:

https://github.com/dotnet/razor/assets/9047283/8430fd1f-792b-4545-a797-5e8e62098eda

Repro:

<div>
</div>

It doesn't happen if I manually select the whole line and delete it.

It doesn't happen in a pure HTML editor, only in Razor.

Peter-Juhasz avatar Mar 17 '24 07:03 Peter-Juhasz

@Peter-Juhasz , can you log a VS Feedback ticket, potentially attaching the video you have already recorded, so we can most easily get it to the correct team?

phil-allen-msft avatar Mar 28 '24 21:03 phil-allen-msft

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

Please see our Issue Management Policies for more information.

I hate that stupid bot. I'll log an issue, don't sweat it.

davidwengier avatar Apr 12 '24 00:04 davidwengier

Logged https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2030987 internally

davidwengier avatar Apr 12 '24 00:04 davidwengier

Internally, a PR has been opened to fix this issue at the VS level.

davidwengier avatar Apr 22 '24 23:04 davidwengier

PR has been merged. I expect the fix will be in the first preview of the next minor release.

davidwengier avatar Apr 23 '24 22:04 davidwengier