Releases: JayNightmare/DisTrack-VSCode-Extension
Releases · JayNightmare/DisTrack-VSCode-Extension
v0.8.3
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 |
v0.8.0
DisTrack v$0.8.0 Release
Full Changelog: https://github.com/JayNightmare/DisTrack-VSCode-Extension/blob/master/CHANGELOG.md
Version Compare log: v0.7.01...v0.8.0
What's Changed
- Revamp extension by @JayNightmare in #12
Patch Notes
-
Major Fix:
- Updated login process
- Created new endpoints
- Created Public endpoints which the public can fetch from to display the leaderboard from other websites
- Fixed memory leak with session timer and vscode extension
- Fixed bug with username not being set when using the vscode extension
- Leaderboard update
-
Minor Fix:
- Improved the security of the backend
- Added endpoint to cloudflare
- Added auth to validate endpoint data
- Updated the website
- Database variable updates
- Improved language support
- Added root server endpoint easter egg
- Improved overall performance
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.txttype nul > discord.txt-> Creates an empty file called discord.txt
- 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
- 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 read 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 |
v0.7.1-beta
DisTrack v$v0.7.01 Release
Full Changelog: https://github.com/JayNightmare/DisTrack-VSCode-Extension/blob/master/CHANGELOG.md
Patch Notes
$CHANGELOG_CONTENT
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.txttype nul > discord.txt-> Creates an empty file called discord.txt
- 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
- 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 read 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 |
v0.6.9
Full Changelog: https://github.com/JayNightmare/DisTrack-VSCode-Extension/blob/master/CHANGELOG.md
Patch Notes
v0.6.9
- Fixed Auth bot token issue
- Added Profile tab
- Added new styling to leaderboard
- New API endpoint for fetching data
- Extension reformatting
- Panel.ts reformatting
- Using .txt file to grab bot token and endpoint url.
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.txttype nul > discord.txt-> Creates an empty file called discord.txt
- 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
- 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 read text.
- Open Terminal and run
vsce - Run
vsce package, this will create the vscode extension. Should output asdis-track-0.6.9.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 |
