fregante / fregante/GhostText

Selected text in the textarea is selected in VS Code, too, but not quite

Open
#326 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.6k
Forks
133
PR merge metrics
No merged PRs in 30d

Description

### Description and repro

It is nice that selected text in the textarea will be selected in VS Code, too. But it seems to be a few lines off. Also, it would be nice, if the selected portion of the text would be instantly in the viewport in VS Code, if that is possible at all.

### Browser(s) tried

Arc, Chrome

### Editor(s) tried

VS Code

Contributor guide

Open the contributing guide

Research direction

Reproduce the selection-sync behavior from a textarea in Arc or Chrome while using VS Code, checking the reported line offset and viewport position. Trace the browser-to-editor selection handling, then verify that the corresponding text is aligned and brought into the VS Code viewport when possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.