Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some changes to the menu #99

Merged
merged 4 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
}
}
]
}
}
1 change: 1 addition & 0 deletions changelog.d/+make-changes-to-menu.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Discord to the menu
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"title": "Select active configuration"
},
{
"command": "mirrord.submitFeedback",
"command": "mirrord.joinDiscord",
"category": "mirrord",
"title": "Submit feedback"
},
Expand Down Expand Up @@ -152,7 +152,7 @@
"when": "true"
},
{
"command": "mirrord.submitFeedback",
"command": "mirrord.joinDiscord",
"when": "true"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function tickFeedbackCounter() {
);
})
.withGenericAction("Feedback", async () => {
vscode.commands.executeCommand(MirrordStatus.submitFeedbackCommandId);
vscode.commands.executeCommand(MirrordStatus.joinDiscordCommandId);
})
.withDisableAction('promptReview')
.info();
Expand Down
14 changes: 7 additions & 7 deletions src/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class MirrordStatus {
readonly statusBar: vscode.StatusBarItem;
static readonly toggleCommandId = 'mirrord.toggleMirroring';
static readonly settingsCommandId = 'mirrord.changeSettings';
static readonly submitFeedbackCommandId = 'mirrord.submitFeedback';
static readonly joinDiscordCommandId = 'mirrord.joinDiscord';
static readonly mirrordForTeamsCommandId = 'mirrord.mirrordForTeams';
static readonly selectActiveConfigId = 'mirrord.selectActiveConfig';
static readonly helpCommandId = 'mirrord.help';
Expand Down Expand Up @@ -40,8 +40,8 @@ export class MirrordStatus {
statusBar.tooltip.appendMarkdown(`\n\n[Select active config](command:${MirrordStatus.selectActiveConfigId})`);
statusBar.tooltip.appendMarkdown(`\n\n[Settings](command:${MirrordStatus.settingsCommandId})`);
statusBar.tooltip.appendMarkdown(`\n\n[mirrord for Teams](command:${MirrordStatus.mirrordForTeamsCommandId})`);
statusBar.tooltip.appendMarkdown(`\n\n[Submit Feedback](command:${MirrordStatus.submitFeedbackCommandId})`);
statusBar.tooltip.appendMarkdown(`\n\n[Help](command:${MirrordStatus.helpCommandId})`);
statusBar.tooltip.appendMarkdown(`\n\n[Get help on Discord](command:${MirrordStatus.joinDiscordCommandId})`);
statusBar.tooltip.appendMarkdown(`\n\n[Walkthrough](command:${MirrordStatus.helpCommandId})`);

statusBar.show();
}
Expand All @@ -57,7 +57,7 @@ export class MirrordStatus {
}));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.settingsCommandId, configManager.changeSettings.bind(configManager)));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.toggleCommandId, this.toggle.bind(this)));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.submitFeedbackCommandId, this.submitFeedback.bind(this)));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.joinDiscordCommandId, this.joinDiscord.bind(this)));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.mirrordForTeamsCommandId, this.mirrordForTeams.bind(this)));
globalContext.subscriptions.push(vscode.commands.registerCommand(MirrordStatus.helpCommandId, async () => {
vscode.commands.executeCommand(`workbench.action.openWalkthrough`, `MetalBear.mirrord#mirrord.welcome`, false);
Expand Down Expand Up @@ -89,11 +89,11 @@ export class MirrordStatus {
this.draw();
}

submitFeedback() {
vscode.env.openExternal(vscode.Uri.parse('https://mirrord.dev/feedback'));
joinDiscord() {
vscode.env.openExternal(vscode.Uri.parse('https://discord.gg/metalbear'));
}

mirrordForTeams() {
vscode.env.openExternal(vscode.Uri.parse('https://mirrord.dev/docs/teams/introduction/'));
vscode.env.openExternal(vscode.Uri.parse('https://app.metalbear.co/'));
}
}