fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

VS Code Saving clears out textarea #309

Open mrussojr opened 1 month ago

mrussojr commented 1 month ago

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

fregante commented 1 month ago

Related to https://github.com/fregante/GhostText/issues/292, but the clearing behavior is new 😩