Skip to content

Commit

Permalink
Add sponsor link (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Aug 31, 2023
1 parent 22592ac commit 658f566
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/command/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import * as glob from "../lib/glob";
// interface

const issues: vscode.Uri = vscode.Uri.parse(pkg.bugs.url);
const sponsor: vscode.Uri = vscode.Uri.parse(pkg.sponsor.url);

export const command: vscode.Disposable = vscode.commands.registerCommand("background.config", () => config());

Expand Down Expand Up @@ -106,8 +107,8 @@ export const config: () => void = () => {
}),
quickPickItem({
alwaysShow: true,
label: "$(refresh) Reload Background",
description: "Randomizes current backgrounds",
label: "$(refresh) Reload",
description: "Randomizes the current background",
handle: () => vscode.commands.executeCommand("background.reload")
}),
separator(),
Expand All @@ -117,8 +118,12 @@ export const config: () => void = () => {
handle: () => vscode.commands.executeCommand("background.changelog")
}),
quickPickItem({
label: `$(bug) Report an Issue`,
label: `$(bug) Report an issue`,
handle: () => vscode.env.openExternal(issues)
}),
quickPickItem({
label: "$(heart) Sponsor this extension",
handle: () => vscode.env.openExternal(sponsor)
})
], options);
}
Expand Down

0 comments on commit 658f566

Please sign in to comment.