DisTrack v0.8.3 Release
Full Changelog: https://github.com/JayNightmare/DisTrack-VSCode-Extension/blob/master/CHANGELOG.md
Patch Notes
- Added full restart logic for Discord Rich Presence when using "Refresh Discord RPC" command.
- Visual feedback: spinner in status bar and progress notification during refresh.
- Prevents concurrent refresh attempts and avoids duplicate RPC listeners.
- Minor internal refactor of RPC lifecycle for stability.
How to use release
- Unzip folder
- Open folder in VSCode
- Open Terminal inside VSCode -> Use Command Prompt or Git Bash
- Run the following
npm install-> Doesn't work? Install Nodemkdir assets-> Creates a folder called assetscd assets-> Goes inside the assets foldertype nul > link.txt-> Creates an empty file called link.txt, put the URL to the back-end here.type nul > discord.txt-> Creates an empty file called discord.txt, put the Discord Bot Token in here.type nul > api.txt-> Creates an empty file called api.txt, put server API key in here.
- Open link.txt and enter your back-end server -> Don't have one? Get one here
- Open discord.txt and enter your discord bot token -> Don't have one? Get one here
- Open api.txt and enter your API key. It should be the same as the one in the back-end.
- Go to the
Run and Debugtab in VSCode and make sure thatRun Extensionis present- If it doesn't appear, go to .vscode and open launch.json.
- Ensure launch.json has this code:
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
- Before running, put
<<in the filter so it only shows the extension - A successful run should show no red text.
- Open Terminal and run
vsce - Run
vsce package, this will create the vscode extension. Should output asdis-track-$VERSION.vsix - Press
Ctrl+Shift+P(or click the top search bar than press>) and typeExtensions: Install From VSIX - Open the .vsix file
- Enjoy your very own Dis.Track Extension
Different Errors you could encounter:
| Error Name | Reason | Solution |
|---|---|---|
Failed to send session data: TypeError: Invalid URL |
Your link.txt url does not work | Check your url is accessible. If it needs a header, you will need to adjust the api.ts file to account for this. If url is correct, use Postman and try sending data to it using POST [endpoint url]/coding-sessions. Once you are able to send data, retry extension. |
Failed to fetch language durations: TypeError: Invalid URL |
Your link.txt url does not work | Check your url is accessible. If it needs a header, you will need to adjust the api.ts file to account for this. If url is correct, use Postman and try fetching data to it. Do GET [endpoint url]/user-profile/:userId. Once you are able to receive data, retry extension. |
Failed to fetch streak data: TypeError: Invalid URL |
Your link.txt url does not work | Check your url is accessible. If it needs a header, you will need to adjust the api.ts file to account for this. |
Failed to fetch leaderboard: TypeError: Invalid URL |
Your link.txt url does not work | Check your url is accessible. If it needs a header, you will need to adjust the api.ts file to account for this. If url is correct, use Postman and try fetching data to it. Do GET [endpoint url]/leaderboard. Once you are able to receive data, retry extension. |
Bot Token Null |
Your discord.txt Bot Token doesn't work | Check that the bot token is valid. To get one, go to the application > Settings > Bot > Token |