@@ -30,7 +30,8 @@ export function activate(context: vscode.ExtensionContext) {
3030 uploadToPastebin ( fileName , codeFormat , code ) ;
3131 } else if ( selection == 'Pastebin' ) {
3232 vscode . window . showInputBox ( {
33- placeHolder : "Pastebin Username"
33+ placeHolder : "Pastebin Username" ,
34+ value : vscode . workspace . getConfiguration ( 'shareCode.pastebin' ) . get ( 'username' ) . toString ( )
3435 } ) . then ( ( userName : string ) => {
3536 vscode . window . showInputBox ( {
3637 placeHolder : "Pastebin Password" ,
@@ -41,7 +42,7 @@ export function activate(context: vscode.ExtensionContext) {
4142 api_user_name : userName ,
4243 api_user_password : userPass
4344 }
44-
45+
4546 request . post ( {
4647 url : 'https://pastebin.com/api/api_login.php' ,
4748 formData : data
@@ -58,7 +59,8 @@ export function activate(context: vscode.ExtensionContext) {
5859 uploadToGist ( fileName , code ) ;
5960 } else if ( selection == 'GitHub Gist' ) {
6061 vscode . window . showInputBox ( {
61- placeHolder : "GitHub Username"
62+ placeHolder : "GitHub Username" ,
63+ value : vscode . workspace . getConfiguration ( 'shareCode.gist' ) . get ( 'username' ) . toString ( )
6264 } ) . then ( ( userName : string ) => {
6365 vscode . window . showInputBox ( {
6466 placeHolder : "GitHub Password" ,
0 commit comments