Skip to content

Instantly share code, notes, and snippets.

@Developerayo
Created August 8, 2023 17:48
Show Gist options
  • Save Developerayo/a621d2a49f8fbcd03f2b78a8fea3abb7 to your computer and use it in GitHub Desktop.
Save Developerayo/a621d2a49f8fbcd03f2b78a8fea3abb7 to your computer and use it in GitHub Desktop.
const getGistVisibility = async () => {
const gistVisibility = await vscode.window.showQuickPick(
["public", "secret"],
{
placeHolder: "Choose the gist visibility",
}
);
if (!gistVisibility) {
throw new Error("Gist visibility selection was cancelled or invalid.");
}
return gistVisibility === "public";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment