Skip to content

Commit 04ee4ec

Browse files
committed
fix: a bug with reconnecting
1 parent 98db028 commit 04ee4ec

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscord",
33
"displayName": "Discord Rich Presence",
4-
"version": "5.0.16",
4+
"version": "5.0.17",
55
"description": "Highly customizable Discord Rich Presence extension for Visual Studio Code",
66
"main": "dist/extension.js",
77
"repository": "github:LeonardSSH/vscord",
@@ -47,7 +47,7 @@
4747
"@types/git-url-parse": "^9.0.1",
4848
"@types/node": "16.x",
4949
"@types/vscode": "1.57.0",
50-
"@xhayper/discord-rpc": "^1.0.14",
50+
"@xhayper/discord-rpc": "^1.0.15",
5151
"discord-api-types": "^0.37.24",
5252
"filesize": "^10.0.6",
5353
"git-url-parse": "^13.1.0",
@@ -62,32 +62,32 @@
6262
"commands": [
6363
{
6464
"command": "vscord.enable",
65-
"title": "Enable Discord Presence.",
65+
"title": "Enable Discord Presence",
6666
"category": "VSCord"
6767
},
6868
{
6969
"command": "vscord.disable",
70-
"title": "Disable Discord Presence.",
70+
"title": "Disable Discord Presence",
7171
"category": "VSCord"
7272
},
7373
{
7474
"command": "vscord.workspace.enable",
75-
"title": "Enable Discord Presence in the current workspace.",
75+
"title": "Enable Discord Presence in the current workspace",
7676
"category": "VSCord"
7777
},
7878
{
7979
"command": "vscord.workspace.disable",
80-
"title": "Disable Discord Presence in the current workspace.",
80+
"title": "Disable Discord Presence in the current workspace",
8181
"category": "VSCord"
8282
},
8383
{
8484
"command": "vscord.disconnect",
85-
"title": "Disconnect from Discord Gateway.",
85+
"title": "Disconnect from Discord Gateway",
8686
"category": "VSCord"
8787
},
8888
{
8989
"command": "vscord.reconnect",
90-
"title": "Reconnect to Discord Gateway.",
90+
"title": "Reconnect to Discord Gateway",
9191
"category": "VSCord"
9292
}
9393
],

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export class RPCController {
4343

4444
if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) {
4545
error?.message?.includes("ENOENT")
46-
? void window.showErrorMessage("No Discord client detected")
46+
? void window.showErrorMessage("VSCord\nNo Discord client detected")
4747
: void window.showErrorMessage(
48-
`Couldn't connect to Discord via RPC:\n${error.stack ?? error.message}`
48+
`VSCord\nCouldn't connect to Discord via RPC:\n${error.stack ?? error.message}`
4949
);
5050
}
5151

src/extension.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,26 @@ export const registerCommands = (ctx: ExtensionContext) => {
6161
logInfo("Enabled Discord Rich Presence.");
6262

6363
if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications))
64-
await window.showInformationMessage("Enabled Discord Rich Presence.");
64+
await window.showInformationMessage("VSCord\nEnabled Discord Rich Presence");
6565
});
6666

6767
const disableCommand = commands.registerCommand("vscord.disable", async () => {
6868
await disable(false);
6969

70-
logInfo("Disabled Discord Rich Presence.");
70+
logInfo("Disabled Discord Rich Presence");
7171

7272
if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications))
73-
await window.showInformationMessage("Disabled Discord Rich Presence.");
73+
await window.showInformationMessage("VSCord\nDisabled Discord Rich Presence");
7474
});
7575

7676
const enableWorkspaceCommand = commands.registerCommand("vscord.workspace.enable", async () => {
7777
await disable();
7878
await enable();
7979

80-
logInfo("Enabled Discord Rich Presence for this workspace.");
80+
logInfo("Enabled Discord Rich Presence for this workspace");
8181

8282
if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications))
83-
await window.showInformationMessage("Enabled Discord Rich Presence for this workspace.");
83+
await window.showInformationMessage("VSCord\nEnabled Discord Rich Presence for this workspace");
8484
});
8585

8686
const disableWorkspaceCommand = commands.registerCommand("vscord.workspace.disable", async () => {
@@ -89,7 +89,7 @@ export const registerCommands = (ctx: ExtensionContext) => {
8989
logInfo("Disabled Discord Rich Presence for this workspace.");
9090

9191
if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications))
92-
await window.showInformationMessage("Disabled Discord Rich Presence for this workspace.");
92+
await window.showInformationMessage("VSCord\nDisabled Discord Rich Presence for this workspace");
9393
});
9494

9595
const reconnectCommand = commands.registerCommand("vscord.reconnect", async () => {

0 commit comments

Comments
 (0)