You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: XAML language server serves stale project state #350
The server keeps outdated project state in two cases:
After file-watcher events are missed (branch switch, bulk disk change), stale C#/project state is used until restart. Saving or reopening the page doesn't revalidate.
After adding a PackageReference without restoring, status stays Ready, no restore is offered, and diagnostics blame the namespace (WXAML0033).
To Reproduce
Open a page that uses {x:Bind ViewModel.Title} and wait for Ready.
Switch to a git branch where Title was renamed, outside VS Code (no watcher events).
Edit, save, or close and reopen the page: no error appears.
Separately: add <PackageReference Include="CommunityToolkit.WinUI.Controls.SettingsControls" .../> to the .csproj without restoring. Status stays Ready.
Expected behavior
Saving or reopening a document revalidates against disk. An unrestored package reports the restore-required state.
Notes
Bug bash IDs: C-40, C-53.
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).
Activity