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