import { commands , env , MessageItem , Uri , window } from "vscode" ; import { Container } from "../../vscode-project-manager-core/src/container" ; export function registerSupportProjectManager ( ) { Container . context . subscriptions . push ( commands . registerCommand ( "projectManager.supportProjectManager" , async ( ) => { const actions = [ { title : 'Become a Sponsor' } , { title : 'Donate via PayPal' } ] ; const option = await window . showInformationMessage ( `While Project Manager is offered for free, if you 
        find it useful, please consider supporting it. Thank you!` , ... actions ) ; let uri ; if ( option === actions [ 0 ] ) { uri = Uri . parse ( 'https://www.patreon.com/alefragnani' ) ; } if ( option === actions [ 1 ] ) { uri = Uri . parse ( 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted' ) ; } if ( uri ) { await env . openExternal ( uri ) ; } } ) ) ; }