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
extension.ts Added the necessary functionality to handle a start and end line and to add the highlights and remove the highlights accordingly. Additionally, the user can now add comments to the highlight!
highlighter.ts Added support for a start and end line
twitchChatClient.ts Added support to pass the correct params to extension.ts
twitchHighlighterTreeView.ts Changed the naming of the parameters to identify their purpose
twitchLanguageServer.ts Added the functionally needed to handle the command. Take special notice of the Regex used for this purpose.
How to test
Clone the repo: git clone https://github.com/clarkio/vscode-twitch-highlighter.git.
Install the node dependencies: cd vscode-twitch-highlighter && npm install.
Press F5 or click debug button (green triangle/play button) in VSCode.
Connect to the chat server.
Use the highlight command !line or !highlight to highlight multiple lines and to add comments.
Use the unhighlight command !line !<number> to unhighlight the lines.
Purpose
Allow users to highlight multiple lines.
Changed Files
extension.ts
Added the necessary functionality to handle a start and end line and to add the highlights and remove the highlights accordingly. Additionally, the user can now add comments to the highlight!highlighter.ts
Added support for a start and end linetwitchChatClient.ts
Added support to pass the correct params toextension.ts
twitchHighlighterTreeView.ts
Changed the naming of the parameters to identify their purposetwitchLanguageServer.ts
Added the functionally needed to handle the command. Take special notice of the Regex used for this purpose.How to test
git clone https://github.com/clarkio/vscode-twitch-highlighter.git
.cd vscode-twitch-highlighter && npm install
.!line
or!highlight
to highlight multiple lines and to add comments.!line !<number>
to unhighlight the lines.Addresses
52 | #12 | #13