@@ -63,7 +63,6 @@ import * as jose from 'jose'
63
63
import { AmazonQChatViewProvider } from './webviewProvider'
64
64
import { AuthUtil , ReferenceLogViewProvider } from 'aws-core-vscode/codewhisperer'
65
65
import { amazonQDiffScheme , AmazonQPromptSettings , messages , openUrl } from 'aws-core-vscode/shared'
66
- import { credentialsValidation } from 'aws-core-vscode/auth'
67
66
import {
68
67
DefaultAmazonQAppInitContext ,
69
68
messageDispatcher ,
@@ -330,26 +329,6 @@ export function registerMessageListeners(
330
329
}
331
330
break
332
331
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
-
353
332
const buttonResult = await languageClient . sendRequest < ButtonClickResult > (
354
333
buttonClickRequestType . method ,
355
334
message . params
0 commit comments