Skip to content

[Bug]: Deeply nested XAML hangs Outline and produces bogus diagnostics #366

Open

Description

Describe the bug

At about 500 levels of element nesting, textDocument/documentSymbol is never answered (Outline and breadcrumbs spin), and well-formed documents get thousands of no matching end tag diagnostics.

To Reproduce

  1. Create a page with 500 nested <StackPanel> elements around a <TextBlock/>.
  2. Open the Outline view: it never loads.
  3. Diagnostics report missing end tags from the 500th element on.

Expected behavior

The request answers quickly (or returns an error) and no diagnostics for well-formed XML.

Notes

9dcfccaa bounded markup-extension nesting, not element nesting. Bug bash ID: C-44.

Screenshots

No response

OS Version and details

Windows 11 x64 (10.0.26200), VS Code 1.143.1, .NET SDK 10.0.403. Found in the XAML IntelliSense bug bash on 0.3.1-prerelease.456 (PR #276, f90df977).

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

Metadata

Metadata

Labels

bugintellisense

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions