Skip to content

Support textDirection in languageConfiguration for RTL languages #268888

@abdelfetah18

Description

@abdelfetah18

Currently, VS Code does not provide a way for extensions to specify text direction for languages that are written right-to-left (RTL), which leads to incorrect rendering since the editor assumes left-to-right (LTR).

I propose introducing a new textDirection field in languageConfiguration that accepts "ltr" or "rtl", with "ltr" as the default. There is already an implementation for RTL based on Decorations (see PR: #255455), so this would build on existing support. If the maintainers agrees, I would be happy to work on a PR for this feature.

Metadata

Metadata

Labels

staleIssues that have not been triaged in an appropriate amount of timetriage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions