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

Adds a TreeView to show the files with highlights #29

Closed parithon closed 5 years ago

parithon commented 5 years ago

Fixes #2


Added Files

src/twitchhighlighterTreeView.ts

Contains two classes. The HighlighterNode class represents the nodes in the TreeView and TwitchHighlighterDataProvider is the data provider for the view which generates the nodes when first viewed or whenever the refresh function is called.

resources/twitchHighlighterIcon.svg

The icon used on the Activity Bar.

Changed Files

src/package.json

I added the necessary sections to register the Activity Bar and TreeView I added some commands to refresh the TreeView and remove the highlights from the nodes context-menu. I also put some conditions to never show these commands in the command palette

src/extension.js

I registered the commands and the TreeView.

clarkio commented 5 years ago

Addresses #27 as part of these changes.