clarkio / vscode-twitch-highlighter

This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
https://clarkio.com
203 stars 14 forks source link

Highlight Doesn't Stay with Correct Line of Code #89

Closed clarkio closed 3 years ago

clarkio commented 5 years ago

Example on stream: https://clips.twitch.tv/DaintyAlluringWombatVoteYea

bitmoji

TheMartes commented 5 years ago

Is it possible to just store content of the line and when line will be edited just check if the content is here.

If not then search through the regex (for most accurate search) for it, if there are matches for it, just highlight this line and de-highlight previous line.

And if the content is here Just compare the line with its previous state and if it's 50% or below same, than de-highlight and start search for it's origin. If it didn't find anything related to it, it should consider that the highlighted line is gone.

clarkio commented 3 years ago

This has been fixed in #125