Context
Per docs/vscode-compat.md Phase A (P0). Text selection is fundamental to any text editor. Monaco Editor and every text-based UI depends on `window.getSelection()` and the `Range` API.
Requirements
Selection API
Range API
Rendering
Implementation Notes
This is tightly coupled with text layout — need to map pixel coordinates (mouse click) to text node + character offset. Requires glyph-level hit testing from the font/layout engine.
References
Context
Per
docs/vscode-compat.mdPhase A (P0). Text selection is fundamental to any text editor. Monaco Editor and every text-based UI depends on `window.getSelection()` and the `Range` API.Requirements
Selection API
Range API
Rendering
Implementation Notes
This is tightly coupled with text layout — need to map pixel coordinates (mouse click) to text node + character offset. Requires glyph-level hit testing from the font/layout engine.
References
docs/vscode-compat.md§2.1 — Selection API