Fix Arabic RTL rendering via per-line detection - #311934
Fix Arabic RTL rendering via per-line detection#311934Mulham Fetna (mulhamfetna) wants to merge 1 commit into
Conversation
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Raymond Zhao (@rzhao271)Matched files:
|
|
@microsoft-github-policy-service agree |
This comment was marked as spam.
This comment was marked as spam.
There was a problem hiding this comment.
Pull request overview
This PR aims to fix incorrect Arabic RTL rendering in the editor by adding an opt-in, per-line RTL auto-detection path in the editor view model.
Changes:
- Added
rtlAutoDetecteditor option and used it inViewModeltext-direction resolution (decorations override; otherwise detect RTL per line). - Added browser unit tests validating RTL auto-detect behavior and decoration overrides.
- Added additional repository/workflow artifacts (settings contribution, MCP config, docs, and an Arch WebKit helper script).
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/preferences/common/preferencesContribution.ts |
Attempts to register a new setting in preferences contribution. |
src/vs/editor/test/browser/viewModel/viewModelImpl.test.ts |
Adds tests for RTL auto-detection and decoration overrides. |
src/vs/editor/common/viewModel/viewModelImpl.ts |
Implements per-line RTL detection when the new option is enabled. |
src/vs/editor/common/config/editorOptions.ts |
Adds rtlAutoDetect option to editor options and enum. |
scripts/install-webkit-compat-deps.sh |
Adds an Arch-specific helper that installs packages and creates system library symlinks. |
docs/rtl-246116-progress-report.md |
Adds a detailed progress report / environment notes for the issue. |
.vscode/mcp.json |
Adds MCP server entries including GitHub PAT prompt wiring. |
.github/copilot-instructions.md |
Expands repo Copilot instructions and adds an issue-specific workflow section. |
6dfc54f to
b0e86bf
Compare
|
Addressed Copilot review: CI should now pass cleanly. GIFs recording! Alexandru Dima (@alexdima) |
|
Copilot apply changes based on the comments in this thread |
8548cf0 to
4cf12e6
Compare
|
Alexandru Dima (@alexdima) Force-pushed a clean branch after review feedback. Waiting on required checks + maintainer approval. Thanks! |
|
Alexandru Dima (@alexdima) quick ping: could you please approve workflows for this fork PR so required CI can start? |
|
Update on #311934 (fixes #246116):
Validation run on this branch:
This is ready for maintainer review. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4cf12e6 to
07cc900
Compare
|
Mulham Fetna (@mulhamfetna) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
Rebased onto current Where this stands: opt-in via This is waiting on a maintainer approving the workflow run for a fork PR. If the approach isn't the direction you want for the editor, I'm happy to close it — just let me know either way. |
Fixes #246116
Before/After GIFs + repro in PR body