Skip to content

Unable to edit adaptive cards for Teams with full width in Visual Studio #14184

Open
@cdrenshaw

Description

@cdrenshaw

Describe the bug
When editing an adaptive card within Visual Studio 2022 17.14.6, if "msteams": { "width": "Full" } is used, the Output pane opens with a warning: (!) Warning: Full Width Control is not supported yet in Adaptive Card Previewer, you can debug in Teams to try it.
This warning puts the adaptive card JSON in the background and interrupts typing. If you click back into the card and type a few characters, the warning reappears and again interrupts typing. It makes it very difficult to make changes to the card from within Visual Studio.

To Reproduce
Steps to reproduce the behavior:

  1. Create a simple adaptive card in Visual Studio and add "msteams": { "width": "Full" }
{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "msteams": {
    "width": "Full"
  },
  "body": [
    {
      "type": "TextBlock",
      "wrap": true,
      "style": "heading",
      "text": "${companyName}"
    },
    {
      "type": "TextBlock",
      "text": "${contactName}",
      "wrap": true
    },
    {
      "type": "TextBlock",
      "text": "The following contact field(s) differ between Autotask and Azure.  Please select the correct value(s)...",
      "wrap": true
    },
    {
      "type": "ActionSet",
      "actions": [
        {
          "type": "Action.Execute",
          "title": "Submit",
          "data": {
            "cardId": "${cardId}",
            "companyName": "${companyName}",
            "contactName": "${contactName}"
          }
        }
      ]
    }
  ]
}
  1. Make an edit to the card.
  2. The Output window is shown with a warning which interrupts typing in the card.

Expected behavior
The warning should only be displayed once, and typing should not be interrupted.

Screenshots

adaptivecardoutputwindow.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs attentionThis issue needs the attention of a contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions