auchenberg / vscode-browser-preview

A real browser preview inside your editor that you can debug.
MIT License
4.39k stars 154 forks source link

Turning off inspect leads to last hovered page element still get highlighted #213

Closed ghost closed 3 years ago

ghost commented 3 years ago

https://user-images.githubusercontent.com/52771399/128243460-96384707-eb4b-4a8c-b483-15414ae04a33.mp4

Steps to reproduce

  1. Open browser preview and go to any website
  2. Turn on inspection and move mouse through page and turn of inspection
  3. Last hover selected element will still be highlighted

Possible Solutions

  1. May be adding hard canvas reload of extension should work.
  2. Don't know i tried going through the code. this line still seems clearing all element selection but not working don't know why 😅.

btw i was thinking vs code api doc should provide new tab like feature like in chromium as vs code itself is built on electron. Tried vscode webview api but still stuck 😅 .