Created
August 8, 2023 17:48
-
-
Save Developerayo/a621d2a49f8fbcd03f2b78a8fea3abb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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