Hug Reports is a Visual Studio Code extension designed to make it easier to express appreciation to contributors of the packages you rely on.
To thank a package you’ve imported into your code file, right click on the 🙌 icon that appears at the start of the line with your import statement. From there, you have the option to select either “Say Thanks” or “Say More”:
Send a token of your appreciation! By clicking "Say Thanks", your appreciation will be sent. You have the option to add a personal note by clicking "Say More" or return to your program by clicking "Cancel".
Provide a personalized note to contributors. Once you click “Say More”, a new webview will appear with a form to fill out:
-
Package name. If you have more than one package imported on you line of code, select one to continue with the rest of the form.
-
Module selection. You can choose to select specific modules you’ve used in your code, or thank the entire package.
-
Github URL. This field displays the URL for the repository of the package. You can edit + save the field if modifications are needed. If the extension cannot find the link to the repository, you can add it yourself by editing the field.
-
Form fields. Add your note to the relevant prompt! At least one of the text boxes must be filled out to submit the form.
-
Submit. Click submit to send your gratitude
# Copy sample extension locally
git clone https://github.com/Hug-Reports/hug-reports-extension.git
# Navigate into sample directory
cd hug-reports-extension
# Install dependencies for both the extension and webview UI source code
npm run install:all
# Build webview UI source code
npm run build:webview
# Open sample in VS Code
code .
Once the sample is open inside VS Code you can run the extension by doing the following:
- Press
F5
to open a new Extension Development Host window