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
We use a new method of gathering the OAuth token used to connect to Twitch. So, when you run this extension it will delete the previous credentials used to login to Twitch and if you revert to a previous version, you will need to get a new token.
No other breaking changes should exist. Please let me know if you find any.
Things that have changed
I removed the unnecessary language server/client design. Visual Studio Code uses a background worker called the Extension Host which is designed to ensure extensions do not block or slow down the UI thread which was our primary concern.
I created an API interface that allows other extensions to call into this extension and highlight/unhighlight lines. This will allow us to support additional chat services as add-on extensions.
Because of this change, the Twitch Chat is now implemented using TwitchChatService and requests highlighting and unhighlighting of lines using the new API interfaces. It serves as the default chat client and an example of how other chat services could be implemented in an add-on or other extensions that target our API. Solves #61.
A new authentication system was created to allow people to generate an OAuth token directly with Twitch instead of using a third-party application. The token is also verified each time the extension is activated to ensure the token is still valid. Additionally, you can revoke the token by signing out - or from Twitch itself without revoking any other application that utilized the third-party token generator. This will hopefully solve issue #108.
The highlight decoration now adjusts to text-editor changes. This solves issues #87 and #88.
Added the ability for broadcasters to require a badge to highlight lines. Badges include admin, bits, broadcaster, global_mod, moderator, subscriber, staff, turbo, and premium.
Added a Twitch API to query if a user is a follower of the channel. The broadcaster should add 'follower' to the badges setting to enforce the 'follower' requirement. Solves #106.
Breaking changes
Things that have changed
I removed the unnecessary language server/client design. Visual Studio Code uses a background worker called the Extension Host which is designed to ensure extensions do not block or slow down the UI thread which was our primary concern.
I created an API interface that allows other extensions to call into this extension and highlight/unhighlight lines. This will allow us to support additional chat services as add-on extensions. Because of this change, the Twitch Chat is now implemented using
TwitchChatService
and requests highlighting and unhighlighting of lines using the new API interfaces. It serves as the default chat client and an example of how other chat services could be implemented in an add-on or other extensions that target our API. Solves #61.A new authentication system was created to allow people to generate an OAuth token directly with Twitch instead of using a third-party application. The token is also verified each time the extension is activated to ensure the token is still valid. Additionally, you can revoke the token by signing out - or from Twitch itself without revoking any other application that utilized the third-party token generator. This will hopefully solve issue #108.
The highlight decoration now adjusts to text-editor changes. This solves issues #87 and #88.
Added the ability for broadcasters to require a badge to highlight lines. Badges include admin, bits, broadcaster, global_mod, moderator, subscriber, staff, turbo, and premium.
Added a Twitch API to query if a user is a follower of the channel. The broadcaster should add 'follower' to the badges setting to enforce the 'follower' requirement. Solves #106.