@@ -63,7 +63,6 @@ import * as jose from 'jose'
6363import { AmazonQChatViewProvider } from './webviewProvider'
6464import { AuthUtil , ReferenceLogViewProvider } from 'aws-core-vscode/codewhisperer'
6565import { amazonQDiffScheme , AmazonQPromptSettings , messages , openUrl } from 'aws-core-vscode/shared'
66- import { credentialsValidation } from 'aws-core-vscode/auth'
6766import {
6867 DefaultAmazonQAppInitContext ,
6968 messageDispatcher ,
@@ -330,26 +329,6 @@ export function registerMessageListeners(
330329 }
331330 break
332331 case buttonClickRequestType . method : {
333- if ( message . params . buttonId === 'paidtier-upgrade-q' ) {
334- focusAmazonQPanel ( ) . catch ( ( e ) => languageClient . error ( `[VSCode Client] focusAmazonQPanel() failed` ) )
335-
336- const accountId = await vscode . window . showInputBox ( {
337- title : 'Upgrade Amazon Q' ,
338- prompt : 'Enter your 12-digit AWS account ID' ,
339- placeHolder : '111111111111' ,
340- validateInput : credentialsValidation . validateAwsAccount ,
341- } )
342-
343- if ( accountId ) {
344- languageClient . sendRequest ( 'workspace/executeCommand' , {
345- command : 'aws/chat/manageSubscription' ,
346- arguments : [ accountId ] ,
347- } )
348- } else {
349- languageClient . error ( '[VSCode Client] user canceled or did not input AWS account id' )
350- }
351- }
352-
353332 const buttonResult = await languageClient . sendRequest < ButtonClickResult > (
354333 buttonClickRequestType . method ,
355334 message . params
0 commit comments