Skip to content

Razor Development: Pasting Leads to Weird Formatting #10930

Open
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
Please see the attached recording. I am pasting in a Razor component attribute, and after the paste is completed, an unexpected formatting occurs that leaves the element in an unexpectedstate:

Expected result:

<DragonSpark.Presentation.Components.Content.DisplayRemoteContent 
        Address="@Input.Content.Addresses.Source"
        Alteration="@(IsMarkdownContentType.Default.Get(Input.Content.Addresses.Source.ContentType) ? Markdownify.Default : Self<string>.Default)" />

    <DragonSpark.Presentation.Components.Content.DisplayRemoteContent Address="@Input.Content.Addresses.Source" />

Original Comments

Feedback Bot on 8/22/2024, 06:23 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Phil Allen [MSFT] on 9/10/2024, 02:58 PM:

We’re sorry you are running into this. After you end up in this state, does a document format (Ctrl+K, Ctrl+D) make the formatting what you expect or does it remain as it is?

Mike-E-angelo on 9/10/2024, 03:16 PM:

Thank you for your investigation Phil Allen [MSFT] this is what I see:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions