Skip to content

Smart string escape on paste broken with line copy/paste #61316

Description

@sharwell

Version Used: 17.3.0 Preview 2.0 [32509.446.main]

Steps to Reproduce:

  1. Place caret at $$:

    Debug.Assert(adjustment != 0, $"Indentation with$$ no adjustment should be represented by {nameof(BaseIndentationData)} directly.");
  2. Press Ctrl+C

  3. Press Ctrl+V

Expected Behavior:

Debug.Assert(adjustment != 0, $"Indentation with$$ no adjustment should be represented by {nameof(BaseIndentationData)} directly.");
Debug.Assert(adjustment != 0, $"Indentation with$$ no adjustment should be represented by {nameof(BaseIndentationData)} directly.");

Actual Behavior:

Debug.Assert(adjustment != 0, $\"Indentation with no adjustment should be represented by {{nameof(BaseIndentationData)}} directly.\");\r\n                Debug.Assert(adjustment != 0, $"Indentation with no adjustment should be represented by {nameof(BaseIndentationData)} directly.");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions