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

Change `channels` setting to a string #76

Closed parithon closed 5 years ago

parithon commented 5 years ago

Purpose

VSCode does not have a UI experience to change settings that are of type array; users are required to edit these setting using the text editor instead of the UI editor. Instead of using an array of type string for the channels setting we should use a comma separated string.

Changed Files

How to test

  1. Clone the repo: git clone https://github.com/clarkio/vscode-twitch-highlighter.git.
  2. Install the node dependencies: cd vscode-twitch-highlighter && npm install.
  3. Check your settings and note that the current channels setting is an array, for example: ['clarkio'].
  4. Press F5 or click debug button (green triangle/play button) in VSCode.
  5. Check your settings again and it should now be a string, for example: 'clarkio'.
  6. Connect to the chat server.
  7. Use the highlight command !line or !highlight to highlight multiple lines and to add comments.
  8. Use the unhighlight command !line !<number> to unhighlight the lines.
  9. Disconnect from the chat server.

Addresses

74