Skip to content

Cursor position is incorrect after documentation comment element completion #6781

Open
@janseris

Description

@janseris

Original title: VS 17.3.3 Razor editor writing documentation tags do nothing or work wrongly

Describe the bug:
Writing XML documentation in Razor editor behaves like writing HTML in VS Code and does not react to some events.
See video for comparison.
Left Razor editor (not working), Right C# editor (working 100 % right).

blazor.editor.working.terribly.mp4

Cannot convert to GIF due to long video.

Note: these bugs were not present in VS 2019 Razor/Blazor editor when VS 2022 was released!
They appeared when switching to VS 2022 which is required since the launch of .NET 6 in November 2021 to be able to work with .NET 6.

Version used:
e.g. VS2022 VS 17.3.3

To reproduce:
Steps to reproduce the behavior:

  1. Open any Blazor application
  2. Try writing XML documentation

Expected behavior:
Working as C# editor.

Actual behavior:
Not working or working incorrectly

Additional context:
This has been happening since at least January 2022 in various forms and I thought was fixed but now is more broken than ever was before. I have been reporting stuff like these since January 2022 on VS Feedback.

image
https://developercommunity.visualstudio.com/t/VS-2022-Blazor-editor-code-docs-matching/1654591
Which leads here: dotnet/roslyn#59773 This is clearly broken again now.

image
https://developercommunity.visualstudio.com/t/VS-2022-Blazor-editor---Writing-too-fast/1654948
#5617 This is clearly worse now because it didn't work on fast writing, now doesn't work at all (/// does nothing when waiting for the summary snippet to be generated)

image
https://developercommunity.visualstudio.com/t/VS-2022-Blazor-editor-buggy-and-features/1632233

and some more 15 tickets each with different Razor editor bugs.

How is this editor still in such very alpha version?

Metadata

Metadata

Assignees

Labels

blockedBlocked on a partner teambugSomething isn't workingexternalScope involves an area outside of the repo

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions