Skip to content

[Bug]: XAML language server latency is high on large projects and files #362

Open

Description

Describe the bug

  • Project-aware Ready takes about 28 to 31 s on a built 3-project solution.
  • Find References / Rename on an app-level resource key rescans every XAML file on every request (7.7 s on a 306-file app) and blocks hover and completion meanwhile.
  • On 20k-line pages, completion, definition, hover and references exceed latency budgets.
  • Semantic diagnostics after an edit grow linearly with file size (5,000 lines: 5.4 s; 20,000+ lines: over 20 s).
  • Requests are strictly serial: $/cancelRequest is ignored, and every keystroke runs an undebounced full diagnostics pass.

To Reproduce

  1. Open a large app (300+ XAML files), wait for Ready.
  2. Run Find References on {StaticResource AppBrush} (declared in App.xaml) and hover elsewhere while it runs.
  3. Hover waits about 7 s.

Expected behavior

Cached resource index, cancellable requests, debounced diagnostics, and latency that doesn't scale with file size.

Notes

Bug bash IDs: C-09, C-33, C-34, C-35, C-49.

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

Assignees

No one assigned

    Labels

    bugintellisenseperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions