VS Code Saving clears out textarea
- Dominant language
- JavaScript
- Stars
- 3.6k
- Forks
- 133
- PR merge metrics
- No merged PRs in 30d
Description
### Description and repro
Saving an update from VS Code blanks out the field I'm working on. The connection seems to be working and captures all text from VS Code, but once I click save, everything goes away.
Chrome console looks right:
VM582:1 5 fields on the page
ghost-text.js:979 GhostText: Connected! You can switch to your editor
ghost-text.js:905 sending 5179 characters
ghost-text.js:931 Disabling field
ghost-text.js:979 GhostText: Disconnected!
Reproducable steps in screen recording attached:
https://github.com/fregante/GhostText/assets/20537536/adf71ec7-69bb-4fbe-bd2a-3ee7f771a311
### Browser(s) tried
Chrome v124.0.6367.119 (Official Build) (64-bit)
### Editor(s) tried
VS Code v1.89.0
Contributor guide
Research direction
Start with ghost-text.js around the logged activity at lines 905, 931, and 979, then reproduce the VS Code save flow in Chrome using the attached recording. The fix is complete when text sent from VS Code remains in the textarea after clicking save instead of being cleared.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vscode
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100