diff --git a/package.json b/package.json index 2f32adc8..b468bafb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vscord", "displayName": "Discord Rich Presence", - "version": "5.0.16", + "version": "5.0.17", "description": "Highly customizable Discord Rich Presence extension for Visual Studio Code", "main": "dist/extension.js", "repository": "github:LeonardSSH/vscord", @@ -47,7 +47,7 @@ "@types/git-url-parse": "^9.0.1", "@types/node": "16.x", "@types/vscode": "1.57.0", - "@xhayper/discord-rpc": "^1.0.14", + "@xhayper/discord-rpc": "^1.0.15", "discord-api-types": "^0.37.24", "filesize": "^10.0.6", "git-url-parse": "^13.1.0", @@ -62,32 +62,32 @@ "commands": [ { "command": "vscord.enable", - "title": "Enable Discord Presence.", + "title": "Enable Discord Presence", "category": "VSCord" }, { "command": "vscord.disable", - "title": "Disable Discord Presence.", + "title": "Disable Discord Presence", "category": "VSCord" }, { "command": "vscord.workspace.enable", - "title": "Enable Discord Presence in the current workspace.", + "title": "Enable Discord Presence in the current workspace", "category": "VSCord" }, { "command": "vscord.workspace.disable", - "title": "Disable Discord Presence in the current workspace.", + "title": "Disable Discord Presence in the current workspace", "category": "VSCord" }, { "command": "vscord.disconnect", - "title": "Disconnect from Discord Gateway.", + "title": "Disconnect from Discord Gateway", "category": "VSCord" }, { "command": "vscord.reconnect", - "title": "Reconnect to Discord Gateway.", + "title": "Reconnect to Discord Gateway", "category": "VSCord" } ], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48b08246..45828b38 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,7 +4,7 @@ specifiers: '@types/git-url-parse': ^9.0.1 '@types/node': 16.x '@types/vscode': 1.57.0 - '@xhayper/discord-rpc': ^1.0.14 + '@xhayper/discord-rpc': ^1.0.15 discord-api-types: ^0.37.24 filesize: ^10.0.6 git-url-parse: ^13.1.0 @@ -16,7 +16,7 @@ devDependencies: '@types/git-url-parse': 9.0.1 '@types/node': 16.18.10 '@types/vscode': 1.57.0 - '@xhayper/discord-rpc': 1.0.14 + '@xhayper/discord-rpc': 1.0.15 discord-api-types: 0.37.24 filesize: 10.0.6 git-url-parse: 13.1.0 @@ -77,8 +77,8 @@ packages: resolution: {integrity: sha512-FeznBFtIDCWRluojTsi9c3LLcCHOXP5etQfBK42+ixo1CoEAchkw39tuui9zomjZuKfUVL33KZUDIwHZ/xvOkQ==} dev: true - /@xhayper/discord-rpc/1.0.14: - resolution: {integrity: sha512-+Q5QiNA8+9VOLlU+O71H5YKlgPoZuizCZhMjdtESVQ+WQ1mcXQd8MxMLbVymXxRpDtsfN1ym/sQHCUXLTahOvw==} + /@xhayper/discord-rpc/1.0.15: + resolution: {integrity: sha512-EW8h2QZ/PNirf8hycp95fHlcYBn898mVoW2yysxLyR+/iMrdbmxHRFX2JCnSihF/9n21WPc644Kse40yxLJNlA==} engines: {node: '>=14.18.0'} dependencies: axios: 1.2.1 diff --git a/src/controller.ts b/src/controller.ts index 2c530d37..2db657a2 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -43,9 +43,9 @@ export class RPCController { if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) { error?.message?.includes("ENOENT") - ? void window.showErrorMessage("No Discord client detected") + ? void window.showErrorMessage("VSCord\nNo Discord client detected") : void window.showErrorMessage( - `Couldn't connect to Discord via RPC:\n${error.stack ?? error.message}` + `VSCord\nCouldn't connect to Discord via RPC:\n${error.stack ?? error.message}` ); } diff --git a/src/extension.ts b/src/extension.ts index 038e5825..8a64d335 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -61,26 +61,26 @@ export const registerCommands = (ctx: ExtensionContext) => { logInfo("Enabled Discord Rich Presence."); if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) - await window.showInformationMessage("Enabled Discord Rich Presence."); + await window.showInformationMessage("VSCord\nEnabled Discord Rich Presence"); }); const disableCommand = commands.registerCommand("vscord.disable", async () => { await disable(false); - logInfo("Disabled Discord Rich Presence."); + logInfo("Disabled Discord Rich Presence"); if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) - await window.showInformationMessage("Disabled Discord Rich Presence."); + await window.showInformationMessage("VSCord\nDisabled Discord Rich Presence"); }); const enableWorkspaceCommand = commands.registerCommand("vscord.workspace.enable", async () => { await disable(); await enable(); - logInfo("Enabled Discord Rich Presence for this workspace."); + logInfo("Enabled Discord Rich Presence for this workspace"); if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) - await window.showInformationMessage("Enabled Discord Rich Presence for this workspace."); + await window.showInformationMessage("VSCord\nEnabled Discord Rich Presence for this workspace"); }); const disableWorkspaceCommand = commands.registerCommand("vscord.workspace.disable", async () => { @@ -89,7 +89,7 @@ export const registerCommands = (ctx: ExtensionContext) => { logInfo("Disabled Discord Rich Presence for this workspace."); if (!config.get(CONFIG_KEYS.Behaviour.SuppressNotifications)) - await window.showInformationMessage("Disabled Discord Rich Presence for this workspace."); + await window.showInformationMessage("VSCord\nDisabled Discord Rich Presence for this workspace"); }); const reconnectCommand = commands.registerCommand("vscord.reconnect", async () => {