Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q chat: closing spans always missing #5732

Open
n1c0z opened this issue Oct 5, 2024 · 0 comments
Open

Q chat: closing spans always missing #5732

n1c0z opened this issue Oct 5, 2024 · 0 comments
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@n1c0z
Copy link

n1c0z commented Oct 5, 2024

Problem

Steps to reproduce the issue

any query that generates a code with openining and closing spans i.e. .... . The closing span - is always missing. See an example from a code extract below:

    <li className={`${hasSubmenu ? 'menu-parent' : ''} ${className}`}>
      <a href={href} onClick={handleClick}>
        {icon && <span className="menu-icon">{icon}} [1]
        {label}
        {hasSubmenu && (
          <span className={`menu-dropdown-toggle ${isOpen ? 'menu-dropdown-show' : ''}`}>
            <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="currentColor">
              <path d="M2 4l4 4 4-4" />
            </svg>
          [2]
        )}
      </a>
      {hasSubmenu && (
        <ul className={`menu-submenu ${isOpen ? 'menu-submenu-open' : ''}`}>
          {children}
        </ul>
      )}
    </li>

Missing in points [1] and [2]

Expected behavior

<li className={`${hasSubmenu ? 'menu-parent' : ''} ${className}`}>
      <a href={href} onClick={handleClick}>
        {icon && <span className="menu-icon">{icon}}**</span>**
        {label}
        {hasSubmenu && (
          <span className={`menu-dropdown-toggle ${isOpen ? 'menu-dropdown-show' : ''}`}>
            <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="currentColor">
              <path d="M2 4l4 4 4-4" />
            </svg>
          **</span>**
        )}
      </a>
      {hasSubmenu && (
        <ul className={`menu-submenu ${isOpen ? 'menu-submenu-open' : ''}`}>
          {children}
        </ul>
      )}
    </li>

System details (run AWS: About and/or Amazon Q: About)

OS: Darwin arm64 23.6.0
Visual Studio Code extension host: 1.94.0
Amazon Q: 1.28.0
node: 20.16.0
electron: 30.5.1

@n1c0z n1c0z added the bug We can reproduce the issue and confirmed it is a bug. label Oct 5, 2024
@justinmk3 justinmk3 changed the title Closing spans always missing Q chat: closing spans always missing Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug. codewhisperer
Projects
None yet
Development

No branches or pull requests

2 participants