Skip to content

Commit

Permalink
Merge pull request #119 from nick22985/main
Browse files Browse the repository at this point in the history
fix: workspace enable / disable commands not working
  • Loading branch information
xhayper authored Oct 22, 2022
2 parents 7e5beae + 5d876b1 commit 239ca0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const registerCommands = (ctx: ExtensionContext) => {
await window.showInformationMessage("Disabled Discord Rich Presence.");
});

const enableWorkspaceCommand = commands.registerCommand("vscord.enableWorkspace", async () => {
const enableWorkspaceCommand = commands.registerCommand("vscord.workspace.enable", async () => {
await disable();
await enable();

Expand All @@ -65,7 +65,7 @@ export const registerCommands = (ctx: ExtensionContext) => {
await window.showInformationMessage("Enabled Discord Rich Presence for this workspace.");
});

const disableWorkspaceCommand = commands.registerCommand("vscord.disableWorkspace", async () => {
const disableWorkspaceCommand = commands.registerCommand("vscord.workspace.disable", async () => {
await disable();

logInfo("Disabled Discord Rich Presence for this workspace.");
Expand Down

0 comments on commit 239ca0d

Please sign in to comment.