Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe language detector now maps 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. Full details: Description checkExplanation The description is complete and focused. It explains the change and reason, links issue Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thank you @psh4607 for implementing the XAML mapping and covering the uppercase Windows path, and @smaucy for reporting it in #16396. Merged #23371 now recognizes every filename association already bundled with Monaco, including Closing this PR as superseded by the general solution, with credit to your contribution recorded in #23371. No additional XAML-specific table row is needed. This provides XML highlighting; richer coloring inside XAML markup extensions remains separate future work. |
ELI5
Orca currently opens XAML files as plain text. This teaches the editor to treat
.xamlfiles as XML so Monaco's built-in XML highlighting can color their tags, attributes, values, and comments.What Changed
.xamlto Monaco's built-inxmllanguage id.Why
XAML is XML, so the existing built-in XML support provides useful highlighting without adding a grammar, dependency, icon mapping, or language registration.
Linked Issue
Fixes #16396
Visual Proof
Rendered Electron QA passed through the repository's Playwright Electron fixture:
MainWindow.xamlfrom Orca's File Explorer.xml.Testing
pnpm lint— passedpnpm typecheck— passedpnpm test— 60,979 passed and 248 skipped, with one unrelated interactive-zsh portability test failing under full-suite load; the exact file passes when focusedpnpm build— passedValidated on macOS with Node 24.18.0 and pnpm 10.24.0:
pnpm test src/renderer/src/lib/language-detect.test.ts— 16 tests passed.pnpm tc:web— passed.pnpm run check:code-quality:changed— passed with 0 new findings across 2 changed files.xml, six distinct token styles.HISTFILEunset,ZDOTDIR=/var/empty, and--maxWorkers=2— 6,546 files passed, 42 skipped, and 1 unrelated file failed; 60,979 tests passed, 248 skipped, and 1 failed. The prior Electron H3 egress timeout did not recur.src/shared/startup-shell-portability.live-shell.test.ts— 171 passed and 16 skipped, including the exact zsh case that failed in the full run.--maxWorkers=1diagnostic rerun stalled in the same interactive zsh case; a process stack sample showed/bin/zsh -iwaiting for input in ZLE, so the run was stopped rather than reported as passing.The remaining full-suite failure is isolated from this PR's two language-detection files, and no unrelated source change was made.
Windows behavior was covered by the case-insensitive
C:\\...\\MAINWINDOW.XAMLregression path; Windows, Linux, and SSH were not manually tested.AI Disclosure
OpenAI Codex was used for implementation, validation, and PR preparation under user direction.
Review
Ready for maintainer review.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)